This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello, I am using RMI and I read the book Complete Java 2 Certification Study Guide and the guys suggested to deliver a server.jar and client.jar file with automatic start of the main server/client class. This looks like: java -Djava.rmi.server.codebase=file:/<path>/ -Djava.rmi.server.hostname=<hostname> -Djava.security.policy=policy -jar server.jar and java -Djava.rmi.server.codebase=file:/<path>/ -Djava.security.policy=policy -jar client.jar Now the problem is that the server is throwing a ClassNotFoundException in the Stub class because its not in the path specified by me. Indeed its in the server.jar file. Is there a solution, or do i have to do it without jars? Thanks