J
Jason Cavett
If this is not the place to ask, I'd appreciate it if you could direct
me to the correct place.
I am creating an executable JAR from a project that has the following
structure (I'm developing in Eclipse):
Project
- src files
- resources
- icons
- config
Inside the config directory is a default config file. If the user
does not have a personalized config file, I want the default one to be
read into an object and then, when the user is finished, that object
will be written to their home directory so they have a personalized
config file in the future.
The problem is, I can't seem to access the config file. I can access
the icons in the icons folder, but I'm stuck on how to get to the
config file. (I tried ClassLoader.getSystemResource("resources/config/
config.xml") but that always throws a NullPointerException.)
If anybody could point me in the right direction, I'd appreciate it.
Thanks
me to the correct place.
I am creating an executable JAR from a project that has the following
structure (I'm developing in Eclipse):
Project
- src files
- resources
- icons
- config
Inside the config directory is a default config file. If the user
does not have a personalized config file, I want the default one to be
read into an object and then, when the user is finished, that object
will be written to their home directory so they have a personalized
config file in the future.
The problem is, I can't seem to access the config file. I can access
the icons in the icons folder, but I'm stuck on how to get to the
config file. (I tried ClassLoader.getSystemResource("resources/config/
config.xml") but that always throws a NullPointerException.)
If anybody could point me in the right direction, I'd appreciate it.
Thanks