File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes executalbe jar file problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "executalbe jar file problem" Watch "executalbe jar file problem" New topic

executalbe jar file problem

mohammad alis

Joined: May 14, 2001
Posts: 5
I have the binaryDb.dat file in directory suncertify\db\Data, and the whole file hierarchy in included in the server.jar.
using Main-class attribute I try to run server app with this
java -jar server.jar textFile.txt
but I get the error that the file suncertify\db\Data\binaryDb.dat can not be find.
I tried to set the classpath to localtion of server.jar file, but didn't helped.???
appreciate any help
mohammad alis
ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
In your path, you need to include yourJarFileName.jar.
I agree. Here's the link:
subject: executalbe jar file problem
jQuery in Action, 3rd edition