Re: create jar file with external jar library



Luigi wrote:
Hi,
in my application there are several import from an external library, in Eclipse i've added this library in Project -> Properties -> Java Build Path -> Add External JARs.

Well, when i export as a Jar file this "jade.jar" library is not in my jar file and the application cannot run.

I've tried even to manually modify the manifest.mf file adding the row: Class-Path: jade.jar (adding even the file in the jar)... but this is not a solution

Is there a solution?



I never include Jar files in my exported jar file. I just run my main jar with the classpath including all of the external jar files.

Ex...
javaw -classpath ...\lib\foxtrot.jar;..\lib\forms-1.0.6.jar;..\lib\looks-2.0.jar;..\lib\metouia.jar;..\lib\kunststoff.jar;..\lib\gtkswing.jar;..\lib\quaqua.jar;..\lib\hsqldb.jar;..\lib\JQuotesApp.jar weconsultants.org.jquotesapp.JQuotesAppManager

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
.



Relevant Pages

  • Re: How to update a jar file for one source file change?
    ... I'm new to java, so, I may get terminilogy wrong, bear with me. ... we've got a BIG jar file that includes thousands of classes. ... updated java source code was not being used. ...
    (comp.lang.java.programmer)
  • Storing a library in a .jar with eclipse
    ... This is more a question regarding Eclipse than Java, ... I have made a java program that uses these classes and does some stuff. ... I would like to create a .jar file which contains my program and the mysql ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... Go to Windows Explorer and navigate to any .jar file (perhaps in ... See it that will reset the file association for the jar files. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Running java programs from class files
    ... java -classpath /xyz/abc MyPackage.MyClass ... I think the most confusing part is the root business. ... I can get it to work if I put the jar file in the Class-Path: line in the manifest and put the jar file in the same directory as the program jar file but not from the command line. ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... See it that will reset the file association for the jar files. ... it as a jar file. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)