I understood that eclipse generates a runnable jar file with all library .jar files extracted and included in the jar file. How do I do the similar this while creating a jar file manually from command prompt. Do I need to extract all the lib jars into classes folder?
Currently I am using -
jar cvfm example.jar manifest.txt -C Classes/ .
Which creates a jar file with all the class files and I need to have all the library jars in the same folder as this example.jar exists.
there's no way do this kind of thing from the jar command line utility. there are 3 main solutions to the dependencies problem:
java -jar [just your jar]
and your dependencies will be picked up