eclipse exporting project having extarnal jars as libs
Hi there
i have done a java project on eclipse , i have used some extarnal jar
files as lib in my project added them by (right click on my project
folder --> properties --> java build path --> libraries --> add
external jars) i also checked on them in
(right click on my project folder --> properties --> java build path
--> order and export)
but when i export my project to executable jar file ( i get the file)
but cant run it
on double click it says (could not find main class) while i have
defined the correct main class in the exporting wizard,
i also tried to extract the jar file and didnt found any of my external
jar libs in it so how can i give this file to my users without making
them download the libs themselves
i need your help please
.
Relevant Pages
- Re: Is it possible to merge ClassLoaders?
... Try to put a databasedriver (a jar file) and your app to a jar and now ... You will see that it doesn't work because simple jar-files can't load ... all libs will be loaded into classpath. ... (comp.lang.java.programmer) - Re: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Priority
... And thus spoke Lew... ... This is why I use Ant .zip the whole thing after making the .jar, ... bundle the libs and the jar toegether... ... but that's what my boss wants - he forces me to do so :-). ... (comp.lang.java.programmer) - Re: Precision: Unable to run a Java jar on iSeries(AS/400) using command JAVA
... But it CAN be run inside the jar... ... Maybe when you run a jar, the classpath must be indicated another ... CMDand its absolutely no problem to run a java class from a ... NoClassDefFound is thrown for classes located in the external jars; ... (comp.sys.ibm.as400.misc) - Re: create jar file with external jar library
... Path -> Add External JARs. ... when i export as a Jar file this "jade.jar" library is not in my jar ... [thufir@arrakis bin]$ ... Note line 4 of the manifest, sets the Main-Class and line 6, which sets ... (comp.lang.java.programmer) - Re: problem with external JARs
... > I'm developing a Java app using the Eclipse IDE. ... > external JARs to work. ... When you put your classes in a JAR file, that JAR file has a manifest. ... The Class-Path header contains relative URL's to the JAR files. ... (comp.lang.java.help) |
|