Hello,
I'm looking to do something which I thought was not going to be difficult.
I have an application that I'd like to package up as a jar because I've got ~30 dependencies and I would like to be able to deploy a single file.
I have some configuration files - a properties file and a spring configuration file, and my log4 props file - that I would like to have external to the jar. I guess I expected that if I put them in the same directory as the jar it would find them when it ran, but it doesn't.
While developing, I have these files at the root of the classpath for my eclipse project and the app finds them just fine. I feel like I'm missing some key aspect of jar / classpath theory...
so what I want is to be able to put the config files and the jar in the same directory and have the app find the config files when I run it with the standard java -jar thing.
Is there not a simple way to achieve this?