Page 1 of 1

Unable to load properties file

Posted: 29 Jun 2012, 08:37
by king3200
hello~~~I met a problem~~
I create a jar and put it into "jre\lib\ext" folder, but it must loading a properties file~~~Where shall I put it?
thanks a lot~~~

Re: Unable to load properties file

Posted: 30 Jun 2012, 07:28
by Lapo
Too few details. Please explain what you are trying to do?

Re: Unable to load properties file

Posted: 02 Jul 2012, 02:22
by king3200
I created a tool jar file for my java extension...and put it in "...\jre\lib\ext" folder, but the tool jar have to load a config properties file.
I should be in which folder let it can be loaded?

Re: Unable to load properties file

Posted: 02 Jul 2012, 06:36
by Lapo
I don't know what a "tool jar" is exactly. If you have dependencies for your Extension you should deploy them in the lib/ folder of SFS and add a reference in the classpath.
In any case your Extension's code will see the as "root" folder the main SFS directory, the one where the start scripts are found. You can deploy the properties file in that folder or in any subfolder.