Unable to load properties file

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
king3200
Posts: 25
Joined: 28 Oct 2010, 01:48

Unable to load properties file

Post 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~~~
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unable to load properties file

Post by Lapo »

Too few details. Please explain what you are trying to do?
Lapo
--
gotoAndPlay()
...addicted to flash games
king3200
Posts: 25
Joined: 28 Oct 2010, 01:48

Re: Unable to load properties file

Post 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?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unable to load properties file

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply