Help!
I'm trying to package my project into an executable jar (including my db and policy file which are at the root level of the jar).
The problem is that when I try to run the rmi server
(
java -Djava.rmi.server.codebase=file:///c:\scjd\suncertify\db/ -Djava.security.policy=policy suncertify.db.RemoteDataServer db.db localhost)
it won't pick up the policy and/or db file. If I extract these two files and put them in the base application directory (where classpath is set to '.') and enter
java -Djava.rmi.server.codebase=file:///c:\scjd\suncertify\db/ -Djava.security.policy=policy suncertify.db.RemoteDataServer c:\scjd\db.db localhost
--note the change in the db location--
then it works.
I really want to keep this as a simple executable jar with no extracting required.
thanks in advance,
Max