Jar problem

Discussion in 'Java' started by Marcelo, Oct 4, 2005.

  1. Marcelo

    Marcelo Guest

    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
     
    Marcelo, Oct 4, 2005
    #1
    1. Advertising

  2. 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>
     
    Andrew Thompson, Oct 4, 2005
    #2
    1. Advertising

  3. Marcelo

    Roedy Green Guest

    Roedy Green, Oct 4, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arnold Peters
    Replies:
    0
    Views:
    598
    Arnold Peters
    Jan 5, 2005
  2. muttley
    Replies:
    0
    Views:
    2,753
    muttley
    Oct 20, 2005
  3. cyberco
    Replies:
    4
    Views:
    3,808
    Roedy Green
    Feb 14, 2006
  4. Arnold Peters
    Replies:
    0
    Views:
    681
    Arnold Peters
    Jan 5, 2005
  5. Gubatron
    Replies:
    2
    Views:
    585
    Gubatron
    Dec 3, 2008
Loading...

Share This Page