Re: create jar file with external jar library



are you trying to export your code, with an library attached?
i do not know of a way to do this.

Perhaps you can just import the jar file as classes (unpack with
something like winzip and add the workspace as if it was your code
package), and then it will create a jar with all the code in it.

would that work around solve your problem?


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?

.



Relevant Pages

  • Re: create jar file with external jar library
    ... package), and then it will create a jar with all the code in it. ... Luigi wrote: ... I've tried even to manually modify the manifest.mf file adding the row: ...
    (comp.lang.java.programmer)
  • Re: Using mandatory libraries (custom class loading vs. expanding libraries)
    ... libraries via the Class-Path manifest entry. ... distribution JAR file by putting the libs *inside* the JAR, ... "The Class-Path header points to classes or JAR files on the local ...
    (comp.lang.java.programmer)
  • JAR Files with Class Paths
    ... I am trying to include the mysql JDBC driver with my application's JAR ... However, when I include the Class-Path attribute, the JAR can no longer ... I usually find my answers scouting the newsgroups but this time I can't ...
    (comp.lang.java.programmer)
  • Re: How can I package things my program relies on with my program?
    ... I cant find anything mentioning it in the Jar ... Is it in the Jar's manifest? ... Class-Path is by far the best solution Merging all the ... You need to bundle all the necessary Jar files into one download (or ...
    (comp.lang.java.help)
  • Re: JAR: Weitergabe von Non-Standard-Bibliotheken
    ... not JAR files within the JAR file or classes on the network. ... Class-Path header in MyJar.jar's manifest to load classes in MyUtils.jar ... Benutzer zu sagen, er möge sie in sein Verzeichnis ... Steine in den Weg legen, ...
    (de.comp.lang.java)