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 / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

Adding libraries to a jar file for distribution using NetBeans

Thread view: 
dsh0105@gmail.com - 09 Jan 2006 01:32 GMT
Hi all,

I've got an application that usesed several 3rd party libraries.  When
I build the project in Netbeans, it runs perfectly. However, the
distribution jar file fails to find the needed the library files. How
can get Netbeans to include/reference the needed 3rd party libraries to
get an application that I can actually distribute?

Thanks,

David H.
Roedy Green - 09 Jan 2006 04:30 GMT
>How
>can get Netbeans to include/reference the needed 3rd party libraries to
>get an application that I can actually distribute?

I think most people use an ANT script to build the distributable.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Oliver Wong - 09 Jan 2006 20:10 GMT
> Hi all,
>
[quoted text clipped - 3 lines]
> can get Netbeans to include/reference the needed 3rd party libraries to
> get an application that I can actually distribute?

   You'd need to deliver the 3rd party JARs along with your JAR file, and
ask the user to make sure that all of thoses jars are on the classpath.
Another solution might be to write your own custom classloader to seek out
the appropriate jars yourself.

   - Oliver


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.