Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Properties file

807580Nov 5 2009 — edited Nov 6 2009
Hello everybody,

Well first I hope I am on the right forum :).

Well my problem is that I got an application (an applet) with some class and where I am loading an external properties file. Working with eclipse if that helps. The loading of that file is done like this:
FileInputStream in = new FileInputStream("UserServer.properties");
Well when I do run on eclipse I need to do the properties files in the bin folder that it works, that is ok. But know I put my Applet in a war file and is called by a jsp page. I export the war file and upload it on my jboss-server deploy directory. An the UserServer.properties also in the same directory.

When I open then IE or Mozilla and enter URL I can see my application put properties are not loaded. I made some search an found out that for IE my application is looking for the properties file on C:\Docs & Sett\User\Desktop and Mozilla on C:\Progs & File\Mozilla\. What do I have to do that my application takes the file on server and not on user desktop?


Many thanks in adavance for your help.
Best regards,
Dany
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2009
Added on Nov 5 2009
11 comments
377 views