I am using RMI and I can start my server in my �jar file. But my client wont find my server ether with my �jar file ore when I use class files. Everything work�s fine if I use just class files. My server says : java �jar FlyByNightServer.jar 127.0.0.1 db.db Server started OK! But my client says : java �jar FlyByNight-jar 127.0.0.1 FlyByNight : java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: suncertyfiy.bussiness.FlightManager_stub Where should I look fore the problem? Everything works with just class files.
posted 14 years ago
Package your stubs with in the client jar, and it will work. When you start your client as "java -jar client.jar", the classpath is ignored, and the client can't find the stubs. Eugene.