Distributed computing is a interesting and challenge problem. The multi-thread and independence on OS property of Java offer an perfect environment for distributed computing. The client can invocate the method of remote object by using Remote Method Invocation(RMI). This paper analyze the principle of java RMI and illustrate that this environment is efficient in distributed computing of heterogeneous complex systems.