Win a copy of Functional Reactive Programming this week in the Other Languages 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic