How to load a resource from an external jar

Discussion in 'Java' started by Ahmed Moustafa, Aug 25, 2003.

  1. If a jar file exists in the classpath, how can I load a resource from
    that external jar? Is it different from
    "this.getClass().getClassLoader().getResource"?

    Thanks in advance!
     
    Ahmed Moustafa, Aug 25, 2003
    #1
    1. Advertising

  2. Ahmed Moustafa

    Harald Hein Guest

    "Ahmed Moustafa" wrote:

    > Is it different from
    > "this.getClass().getClassLoader().getResource"?
    >


    No, why don't you try it?
     
    Harald Hein, Aug 25, 2003
    #2
    1. Advertising

  3. Harald Hein wrote:
    > "Ahmed Moustafa" wrote:
    >
    >
    >>Is it different from
    >>"this.getClass().getClassLoader().getResource"?
    >>

    >
    >
    > No, why don't you try it?


    Yeah, right! I tried it and it worked fine.
     
    Ahmed Moustafa, Aug 25, 2003
    #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:
    589
    Arnold Peters
    Jan 5, 2005
  2. muttley
    Replies:
    0
    Views:
    2,734
    muttley
    Oct 20, 2005
  3. cyberco
    Replies:
    4
    Views:
    3,782
    Roedy Green
    Feb 14, 2006
  4. Arnold Peters
    Replies:
    0
    Views:
    672
    Arnold Peters
    Jan 5, 2005
  5. Luigi
    Replies:
    5
    Views:
    48,764
Loading...

Share This Page