I need to create a jar file using eclipse IDE. But I am facing with a problem of adding referencing jars to the jar I am creating… after creating a jar for my project, when I run it using command prompt (I use command prompt because I need to input a file as a command line argument) it gives an exception saying “class not found” and that particular class is in that referencing jar file…
I tried to overcome my problem using the way instructed in the following link but still the problem exists…
http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java)
Can anyone please help me with this? Thanx in advance…
You can create a runnable jar that includes all dependencies using the Export wizard.
Go to “Export > Runnable JAR File”, and select “Package required libraries into generated JAR”.