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 / October 2005

Tip: Looking for answers? Try searching our database.

Jar problem

Thread view: 
Marcelo - 04 Oct 2005 10:24 GMT
how can I use some classes that are inside a JAR file?

i know that I can decompress the jar file and then add the classes
inside my code, but is it possible just to call the jar file inside my
classes?

thanks,

Marcelo
Andrew Thompson - 04 Oct 2005 11:14 GMT
> how can I use some classes that are inside a JAR file?

Here's 2 ways.
- add the jar to the classpath
- create a custom class loader that can reach
the jar and load the resources.

As an aside, noob questions are better asked on
<http://www.physci.org/codes/javafaq.jsp#cljh>
Roedy Green - 04 Oct 2005 11:23 GMT
>how can I use some classes that are inside a JAR file?

see http://mindprod.com/jgloss/classpath.html
http://mindprod.com/jgloss/jar.html
http://mindprod.com/jgloss/jarexe.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



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.