Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

executalbe jar file problem

 
mohammad alis
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your path, you need to include yourJarFileName.jar.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!