在jb下调试 方法如下:
Step summary:
Create an interface (SimpleRMIInterface.java).
Create a class that implements the interface (SimpleRMIImpl.java).
Create a server that creates an instance of this class (SimpleRMIServer.java).
Create a client that connects to the server object using Naming.lookup() (SimpleRMIClient.java).
Set the RMI compiler options on the RMI implementation file (right-click, Properties... | check "Generate RMI stub/skeleton" | enter "-v1.2" in "Options").
Compile the project (Project | Rebuild project "SimpleRMI.jpx").
Start the RMI registry (Tools | RMIRegistry).
Start the server class (check VM java.rmi.server.codebase and java.rmi.server.policy settings, Run | Run project).
Or use the runtime configuration, SimpleRMIServer for Unix or Windows
Verify first that the default VM paramaters are correct for your installation locations.
Run the client program (right-click SimpleRMIClient.java, select Run).
Or use the runtime configuration, SimpleRMIClient for Unix or Windows
Verify first that the default VM paramaters are correct for your installation locations
嘿嘿 是的 delphibbs里确实没有多少java高手 嘿嘿 你可以去www.csdn.net或www.java.com.cn上去找你需要的高手