| Author |
Problem about launch RMI server:
|
dennis du
Ranch Hand
Joined: Dec 31, 2004
Posts: 59
|
|
I used to use >java -Djava.rmi.codebase=file..... RMIServer "Your programs must not require use of command line property specifications." But now when I use > java -jar runme.jar server. So I can't use the -Djava.rmi.codebase=file.....,But the Exception always come out. java.lang.ClassNotFoundException: suncertify.db.RMIServer_Stub I am sure that suncertify.db.RMIServer_Stub is in runme.jar. Anybody have a solution for this?
|
-------------------------------<br />OCP 9i <br />SCJP/SCJD/SCWCD(92%)/SCDJWS<br />XML(IBM Test 141)<br />Who is the next?SCBCD<br />SCBCD/CCNA/CCNP/PMP<br />not sure
|
 |
dennis du
Ranch Hand
Joined: Dec 31, 2004
Posts: 59
|
|
Thanks for the guys who want to answer the question. I found a solution for this problem.
|
 |
Ken Kirin
Greenhorn
Joined: Dec 02, 2004
Posts: 26
|
|
Hi, Can you tell me more about how you run RMI server. I just finished most of my project but I really have no idea how to run it or even set up a server and let another computer connect it. If you could please guide me how to do this, It would be extremly helpful for me to test my code. Thank you Ken Kirin SCJP SWCD SCJD(B&S In progress)
|
 |
peter wooster
Ranch Hand
Joined: Jun 13, 2004
Posts: 1033
|
|
Originally posted by Ken Kirin: Hi, Can you tell me more about how you run RMI server...
Here's my code to start the RMI registry and the DataAdapterFactory:
|
 |
dennis du
Ranch Hand
Joined: Dec 31, 2004
Posts: 59
|
|
At fist , I start >rmiregistry port then I use >java -jar runme.jar
|
 |
Eric Chang
Ranch Hand
Joined: Jan 27, 2004
Posts: 113
|
|
|
Dennis, you may want to figure out how to run the rmiregistry in your code rather than running it separately because the instructions explicitly say that you must be able to run the program using the runme.jar, and I assumed it meant that you should not have to run anything else beforehand (ie: the rmiregistry).
|
 |
Paul Bourdeaux
Ranch Hand
Joined: May 24, 2004
Posts: 783
|
|
At fist , I start >rmiregistry port then I use >java -jar runme.jar
I think this will give you an automatic failure. [ January 24, 2005: Message edited by: Paul Bourdeaux ]
|
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
|
 |
dennis du
Ranch Hand
Joined: Dec 31, 2004
Posts: 59
|
|
Thanks everyone.I will encapsulated the rmiregistry in my application. But here is question: 1. rmiregistry is a goo tool for the distributed applications. You can run it on a computer,then run your rmi application on any computer,what you should do just point your application's rmiregister address to it. 2. SO when you join rmiregistry into your application. This excellent feature will be missed.
|
 |
 |
|
|
subject: Problem about launch RMI server:
|
|
|