The availability of powerful personal computers and high bandwidth home connectivity is changing the way users cooperate and exchange information on the network. Peer to peer computing is becoming a common paradigm for many distributed applications, allowing for extensive resource sharing and direct communication among peers. Recently, the wide spreading of new wireless communication technologies and personal computing devices, enables the adoption of the P2P paradigm also in mobile environments. However, several questions arise when trying to develop such systems: existing solutions do not address all the requirements of these environments. In this paper we present a framework to develop mobile applications which exploits the P2P paradigm: it is designed to work on J2ME enabled mobile devices, interacting with each other in an ad-hoc fashion. The designed framework is also interoperable with JXTA, a well-known P2P open platform.