• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NetBeans IDE : Executable Jar

 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Author,

How do I include the other libraries and .vm (velocity template) files in my executable jar. (the one which creates automatically by NetBeans is created the lib folder inside dist and place all my libraries into lib folder).

one way I know to create by this command by including the jar files into manifest file.


Main-Class: Main
Class-Path: mylib.jar





is there any way in netbeans to achieve this?

Thanks for reading my post.
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes absolutely, just add the *.vm to your project's "Source" folder, and any dependency jars to your project's "Library" folder and Netbeans will make sure while packaging these becomes part of the jar file. Thats the simplest way.


Also, if you use Maven for builds you can have Maven do this packaging the way you want and just tell netbeans where to find the Maven POM file.
 
Look ma! I'm selling my stuff!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic