• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to include classpath in exe file which derived from jar?  RSS feed

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I use JBuilder to build a jar file and derive the exe file.

I added other jar library files to jar. So, when I run java -jar test.jar, it can run with other jar library files.

However, other jar library files cannot be included when I run the exe file.

I tried test.exe -cp others.jar, but it does not work.

How can I fix it?

Thanks
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add all jar file/class file into exe file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!