SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Roel De Nijs wrote:It's all about the directory structure in my opinion. So you have to execute from the correct current directory. If the directory "classes" is a child of directory "RMI-EXAMPLE-2" and you execute the java command from E, then the correct statement to start the server would be:
java -cp RMI-EXAMPLE-2/classes -Djava.rmi.server.codebase=http://localhost:8080/ core.java.book.chpt10.example.WarehouseServer
Anyhow when I try to start the WarehouseServer with correct classpath settings (with regard to the current directory) the program runs without exception.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Sean Keane wrote:This is crazy! Just to confirm I am not going mad.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|