This content has been marked as final. Show 5 replies
Including one Jar in another won't work (at least not in the way you want it to).
What you need to do is to store all jar files (yours and the libraries) in some fixed relation to each other (possibly all in the same directory for example) and set the classpath property in the MANIFEST.MF to refer to the required jar files.
Hi Guys, don;t laugh I am new :)
I have created am src folder that contains all my code in appropirate packages
I simple dragged and droped the JDOM.jar file from the desktop (After downloading) onto the "Referenced Libararies" section within Eclipes "Package Explorer.
When I do an export I get the following structure.
I can see that the export has moved the jom.jar file into my Jar file but this is not being found within the class path.
Do I need to create another project that includes my Jar file, JDOM.Jar and a custom Main.java. Then export this as a Jar file??? Seams a bit strange?
I have worked it out. I was using the wrong "Export" type within Eclipse (Sorry this ended up not being Java related)
To export when including other Jar files select "Export" | "Java" | "Runnable Jar File"
Select your "Launch Configuration"
Make sure that the Jar files are includinged within your "Launch Configuration" Class Path under "Edit Configuration" and if done.
PS guys, do you know of any other method of releasing a Java app?