Skip to main content



      Home
Home » Newcomers » Newcomers » NEWBIE : how to genrate jar with TWO externally libraries : only one is resolved !?
NEWBIE : how to genrate jar with TWO externally libraries : only one is resolved !? [message #39468] Thu, 24 March 2005 02:30 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:building a JAR file
Next Topic:updating crashes eclipse
Goto Forum:
  


Current Time: Tue May 13 03:58:17 EDT 2025

Powered by FUDForum. Page generated in 0.06655 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top