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.
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.
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>