Dear news group friends,
I am new to Java, only been working with it for a month or so. Here is
my problem:
I need to package my tree of classes into a Jar file. One of those
classes must be able to determine at run time what Jar file it came
from, and more importantly where that Jar file is located at. This is
because it must pass the Jar file path and file name to another class
that searches the Jar file for a data file located in the root folder
in the Jar file.
Does anyone know an easy way to have a class find the location of the
Jar file it came from? Any help would be wonderful.
Greg Ofiesh
I am new to Java, only been working with it for a month or so. Here is
my problem:
I need to package my tree of classes into a Jar file. One of those
classes must be able to determine at run time what Jar file it came
from, and more importantly where that Jar file is located at. This is
because it must pass the Jar file path and file name to another class
that searches the Jar file for a data file located in the root folder
in the Jar file.
Does anyone know an easy way to have a class find the location of the
Jar file it came from? Any help would be wonderful.
Greg Ofiesh
Comment