Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Deploying a java application with class path dependencies as a .jar file  RSS feed

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

I have developed a java application with several class files with dependencies on 3rd party api's which were on the class path. Now I want to deploy this application as a packaged jar file,which on double click executes the Main() method as specified in the manifest.mf, my question is what's the best way to package those 3rd party jar files, that the application depends on and load it into jvm when the user double clicks the deployed jar file, i.e. a few classes in the application depend on those 3rd party apis, and I dont know as to how I can integrate them both(the application and the 3rd party api jar files), when deploying as a executable jar.

Thanks

Vijai
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding a classpath element to your manifest is described pretty well HERE
 
Shashi Kant
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
you need to create .jar file using some utility like WSAD.
so by using this utility the third party libs are also included in your application's jar file that you want to deploy
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!