• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to include all the .jar files in an application to create an executable file  RSS feed

 
M Ram
Greenhorn
Posts: 4
IntelliJ IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an Java desktop application which needs to be deployed on client location. But when I create an .exe file using "launchcj" software, it doesn't include all the .jar files from the application. I'm unable to connect to DB. My question is how to include .Jar files and other libraries into an .exe file deployment?
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The trick I have seen suggested is to create a jar file which includes all of your dependent jars, and then make THAT jar file executable.
 
Paul Clapham
Sheriff
Posts: 22509
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I searched the web for "launchcj" it wanted to know if I meant "launch4j". Anyway I'd be very surprised if it (whichever of those names is right) didn't have a way of including jar file dependencies. Perhaps have another look through its documentation to see if it does?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!