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 / June 2006

Tip: Looking for answers? Try searching our database.

create a jar file with an external jar library

Thread view: 
Luigi - 31 May 2006 18:20 GMT
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?
Sigmund Hansen - 01 Jun 2006 20:37 GMT
> Hi,
> in my application there are several import from an external library, in
[quoted text clipped - 9 lines]
>
> Is there a solution?

I don't use eclipse, but the Class-Path does it just say jade.jar, or
does it contain the path of the jade.jar?
Or else, then your jar and the jade.jar need to be located in the same
directory.

The jade.jar should not be inside your jar file, if you want to put the
library in your jar file, you need to extract the files in jade.jar and
put them in your own jar file.

Are you sure the problem is the external library though?
Polzunov Sergei - 01 Jun 2006 22:19 GMT
>> Hi,
>> in my application there are several import from an external library,
[quoted text clipped - 20 lines]
>
> Are you sure the problem is the external library though?
and what about dtd files for xml in jar files? i can make my jar works
only when dtd directory in the same dir. But if i want to locate my dtd
dir in jar?


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.