guys, unfortunately I still cant get my jars and rmi to work together, after spending the whole night. I'm really stuck 100%.
I followed some people's suggestion to use LocateRegistry.createRegistry(), and everything works before I run my programs from jars.
And when I work with the jars I get: classNotFound exceptions of stubs.
to recap, my directory structure is :
c:\scjd\starting\suncertify\db\
c:\scjd\starting\suncertify\client
c:\scjd\starting\suncertify\server
and when I jarred i created server.jar which has *.class from db and server, and client.jar which has *.class from db and client.
I run the server.jar like this:
java -Djava.security.policy=test.policy -jar server.jar %1 %2
This works fine, but client.jar is what gives the exceptions:
java -Djava.security.policy=test.policy -jar client.jar %1 %2 %3
I'm really drowning here, please help me, I never knew that submitting this thing would be so hard, nothing is easy here, so please help, because all i have left to do is this packaging, otherwise im done.