I'm suspecting it having to do with the codebase parameter that I have omitted. But even if I try to add it I can't seem to figure out a way for it to start.
Mikael Månsson wrote:They are all located in the same default package. Considering this, what would be the correct way to run the server?
You should add the codebase when running the server. As the tutorial says just put the absolute path to the directory where your classes are located (this case as you are using default package). It should work.
Joined: Sep 20, 2009
Ok, but for the submission to the SCJP, where you deliver a jar file, what is then the preferred way?
Lets say I have the following structure:
Say that the remote object and server is in remote and the rmi client is in local. I will use the same jar on both machines but with different startup options. How do i specify the codebase when I start the application? Can it be omitted, since the class files are available locally anyway?