Abstract. This paper describes JaDiMa (Java Distributed Machine), a collaborative framework to construct high performance distributed Java applications on grid platforms. JaDiMa is a system that automatically manages remote libraries used in a Java application. It leverages on the advantages of portability, modularity, object oriented model and flexibility of Java, while incorporating well known techniques of communication and security. JaDiMa allows users to compile and execute Java applications which use distributed libraries, without the need of keeping them in the developer and user hosts. The result is a simple and efficient distributed environment upon which applications and data are easily shared and highly portable amongst heterogeneous platforms and multiple users. We describe an implementation of JaDiMa as part of suma/g, a Globus-based grid environment. We also show experiences of executing an application, which uses libraries for managing graph and network data, on several scenarios with suma/g and JaDiMa.