Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.server.codebase problem

 
Duane Riech
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone tell me what's wrong with this.
I'm trying to specify the java.rmi.server.codebase
parameter when starting up my server.
NOTE***
I've kept the directory hierarchy of
..\..\program\suncertify\db for programming. My
server program, RegFBNSDatabase, is in the
\program directory, the stubs in the
..\..\program\suncertify\db directory.

When I execute
java -Djava.rmi.server.codebase=file:.\suncertify\db
-Djava.security.policy=java.policy -DPort=1099
-DSDb=.\suncertify\db\db.db
-DRDb=.\suncertify\db\Reservationdb.db RegFBNSDatabase
using the =file:.\suncertify\db, it works fine.
IF I use =file:c:\..\..\..\program\suncertify\db
I get
Exception in thread "main" java.lang.NoClassDefFoundError: files\java\duane\deve
lopment
Any ideas???
Thanks
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not use codebase, it complicates your life and the life of the assessor enormously. Just package your stubs with the client, and you will be fine. Forget about the policy file, too.

java -Djava.rmi.server.codebase=file:.\suncertify\db
-Djava.security.policy=java.policy -DPort=1099
-DSDb=.\suncertify\db\db.db
-DRDb=.\suncertify\db\Reservationdb.db RegFBNSDatabase

All of this nonsense should be reduced to just
java -jar server.jar <port>
[ April 02, 2003: Message edited by: Eugene Kononov ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic