Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Jar problem

Reply
Thread Tools

Jar problem

 
 
Marcelo
Guest
Posts: n/a
 
      10-04-2005
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
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      10-04-2005
Marcelo wrote:

> 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>
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      10-04-2005
On Tue, 04 Oct 2005 11:24:08 +0200, Marcelo <(E-Mail Removed)> wrote
or quoted :

>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
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jython: Packing several .py on .jar, problem importing .py moduleswithin the .jar Gubatron Python 2 12-03-2008 06:01 PM
java -cp a.jar -jar b.jar => Works on Windows, not on Debian cyberco Java 4 02-14-2006 06:27 AM
jaas.jar, jta.jar jdbc-stdext.jar missing from jdk1.5 RPM muttley Java 0 10-20-2005 02:40 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters Java 0 01-05-2005 10:59 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters XML 0 01-05-2005 10:59 PM



Advertisments