The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 (Not So) Stupid Questions 10: JAR Files
Subject:  The tutorial does have an example
Date:  2006-06-15 16:12:21
From:  wgauvin


You need to get the resource location as a URL. Files inside a JAR file can be accessed by a URL. Have a look at

http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html

If the file is in your classpath, either by a directory or a JAR file, then this will work.

 Feed java.net RSS Feeds