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
Joined: Oct 08, 2001
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.