I need to distribute my applctn by making a jar. My application references other jars which has been included in the "lib" folder. I have created the jar containing the class files and the lib folder. Now I need to execute my main class using the option
java -jar <class-name>. But it doesnot seem to work as it throws an error saying the classes in the jar files contined in the lib folder cannot be found. Please help and Thanks in advance