is it possible to add to the classpath of a runnable jar file some properties file? I tryed these solutions solutions:
running the executable file using the following command:
java -cp ../prop_dir/prop1.properties;../prop_dir/prop2.properties -jar MyRunnableJar.jar
adding to the MANIFEST FILE (in the Class-Path section)
../prop_dir/prop1.properties ../prop_dir/prop1.properties
but none of them works.
The architecture of the running dir is the following
+
+ MyRunnableJar.jar
+ prop_dir/
+ prop1.properties
+ prop2.properties
Thanks so much,
Daniele
EDIT
When I execute the following line
System.out.println(System.getProperty("java.class.path"));
I obtain in my console
MyRunnableJar.jar