Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

My Project Works Inside Eclipse But Not When I Export

Thread view: 
cppaddict - 26 Feb 2007 08:20 GMT
   
I have an eclipse project into which I have exported a few external
jar files. If I now export the entire eclipse project as a jar file,
will it include the necessary class files from the external jar files
in the export? Or will the exported jar depend on the external jar
files being in the CLASSPATH?

If the external class files are not exported by default, is there a
way to make them get exported?

Thanks,
cpp
cppaddict - 26 Feb 2007 08:49 GMT
Updated info.....

I went to the Build Path Properties in eclipse, Order and Export tab,
and checked the 2 jars.  I also had to manually add them to my System
CLASSPATH.  That took care of the the ClassDef errors.

However, the external jars use some native code and a DLL in the
C:\WINDOWS folder, and now I am getting an UnsatisfiedLinkError on one
of the native calls...

Again, it all works fine in eclipse.  So now I am even more confused
:(

Any ideas?
www - 26 Feb 2007 21:45 GMT
>    
> I have an eclipse project into which I have exported a few external
> jar files. If I now export the entire eclipse project as a jar file,
> will it include the necessary class files from the external jar files
> in the export? Or will the exported jar depend on the external jar
> files being in the CLASSPATH?
During the Export process, there is an opportunity to let you decide if
you want to export other project(s) into the destination jar file. It is
a thing of check or un-check. In terms of those needed jar files, I
don't remember. I guess they are similar situation as the needed projects.

If my Eclipse project needs other project classes to work, I can export
all of them into a big jar file. Or I can only export my Eclipse project
into a smaller jar file, but I need to add those needed classes' paths
into classpath variable.

> If the external class files are not exported by default, is there a
> way to make them get exported?

Yes. Like I said previously, pay attention to each step when exporting,
there is a check or un-check thing to let you decide.

> Thanks,
> cpp


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.