File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to include classpath in exe file which derived from jar? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to include classpath in exe file which derived from jar?" Watch "How to include classpath in exe file which derived from jar?" New topic
Author

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

Andrew Parker
Ranch Hand

Joined: Nov 12, 2001
Posts: 178
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
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Add all jar file/class file into exe file.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: How to include classpath in exe file which derived from jar?
 
Similar Threads
Security of Java Jar file
createProcess error=193, %1 is not a valid win 32 application
making a exe in java
Run .exe using multithreading
how to conver .jar to .exe file