The server starts OK by java suncertify.server.DatabaseServer. But when I packed classes (_stub included) into a executable jar - server.jar and run with java -jar server.jar, classNotFound: -Stub Exception is thrown when rebinding. What do I need to do? at rmiregistry or somewhere else? Do I have to pack the classes into Server.jar? Thanks in advance! Leon
Before you start rmiregistry, in that console window, issue the following command: set CLASSPATH=server.jar (or wherever your server.jar is located) Also look at my explanation in the thread codebase and rmiregistry
Hi Guys, your suggestion please. I cann't access db.db and userguide.html(for online help) when run client.jar thanks
Joined: Feb 19, 2002
Thanks Sai! Dasong, my userguide.html and db.db are not packed in client.jar. I just put them in the same directroy with client.jar.
Joined: Apr 05, 2002
Dasong, my userguide.html and db.db are not packed in client.jar. I just put them in the same directroy with client.jar.
1.the problem is I cann't access db.db and userguide.html from client.jar. I did put them in the same dir as client.jar. 2. If I put userguide.html in doc\ which is in same dir as client.jar(starting\client.jar, starting\doc\userguide.html). how can I access userguide.html. my code is ClassLoader.getSystemClassLoader().getSystemResource("userguide.html") this code is for first (1.) condition. Thanks Wang!