NEWBIE : how to genrate jar with TWO externally libraries : only one is resolved !? [message #39468] |
Thu, 24 March 2005 02:30  |
Eclipse User |
|
|
|
Originally posted by: info.technosoft-hofbieber.de
hi all,
i wanna include TWO external jars
and run the jar separated from IDE !
in Eclipse-IDE with RUN : all works fine !
EXporting to JAR:
each of jars is successfully resolved, if loaded singularly.
but loading both, the second jar seems to override the first :
in eclipse 3.01 (under win98se Pentium4) under project->properties
u can switch the order of JARS, similar Class-Path in manifest (effect from
here too?)
if ABRAHAM.jar is listed first, only calls to functions of BEBRAHAM will
suceed, whereas
function-calls to ABRAHAM.jar raise a 'NoClassDefFound Error' .
so its vice versa, if BEBRAHAM.jar is listed first...
what to do ?
reagrds from wolf
|
|
|
Re: NEWBIE : how to genrate jar with TWO externally libraries : only one is resolved !? [message #39499 is a reply to message #39468] |
Thu, 24 March 2005 03:59  |
Eclipse User |
|
|
|
Originally posted by: info.technosoft-hofbieber.de
post scriptum:
testing this in detail confirms all said :
the second jar in manifest.txt seems to override the first :
<pre>
Manifest-Version 1.0
Main-Class: main <yes, its called so !>
Class-Path: poi-2.0-RC2-20040102.jar
Class-Path: SuperWaba.jar
</pre>
this way on ly function calls to the 2nd JAR SuoerWaba.jar succeed !
for 1st JAR there thrown 'NoClassDefFound'-Exception, though in the
editor with main.java loaded, no error-signal appears for imports to poi..
nor commands are redlined
How does Eclipse resolve ?
Please Help !
regards from wolf
|
|
|
Powered by
FUDForum. Page generated in 0.06655 seconds