If you know the jar file location, you can use the following to load it
ClassLoader loader = new URLCLassLoader(new URL[]{jarLocation}); //
jarLocation is the location of the resource jar.
// replace all the occurrences of getClass().getResource with
URL url = loader.getResource(filenam
Main Topics
Browse All Topics





by: sciuriwarePosted on 2007-09-29 at 23:06:17ID: 19986342
Why should additional files be in an extra .jar?
1) put them in the primary jar as resource.
2) open and load them as necessary.
I don't see the advantage of an extra jar for data files.
;JOOP!