Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to load a resource from an external jar

Reply
Thread Tools

How to load a resource from an external jar

 
 
Ahmed Moustafa
Guest
Posts: n/a
 
      08-25-2003
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!

 
Reply With Quote
 
 
 
 
Harald Hein
Guest
Posts: n/a
 
      08-25-2003
"Ahmed Moustafa" wrote:

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


No, why don't you try it?
 
Reply With Quote
 
 
 
 
Ahmed Moustafa
Guest
Posts: n/a
 
      08-25-2003
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.

 
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
create jar file with external jar library Luigi Java 5 06-01-2006 10:39 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