You can place the properties into a jar file.
you must locate the properties,eg:
String fileName;
URL url = "">
//the properties file is placed int the folder of "ToolBar"
DataInputStream reader = new DataInputStream(imageURL.openStream());
Harold Meder <[EMAIL PROTECTED]> wrote:
DataInputStream reader = new DataInputStream(imageURL.openStream());
Harold Meder <[EMAIL PROTECTED]> wrote:
I have defined a properties file for my java application. It lives in a folder with my java code. Eclipse nicely moves it over to
my classes folder, where it also places my class files. Everything works nicely.
I package up my application into a jar file, including the properties file. My application can no longer find the properties file.
Of course, if I copy my properties file into an appropriate folder structure in a folder listed in my class path, it works again.
I do not want to have to deploy my application with my properties file outside the jar file. Not this one anyway.
How can I get my application to find my properties file inside of the jar file? What is the proper what to deploy properties files
with your application?
Thank you,
Harold Meder.
_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
- [Juglist] Where is that Properties File Harold Meder
- RE: [Juglist] Where is that Properties File Fengbiao Li
- RE: [Juglist] Where is that Properties File A. Kevin Baynes
- Re: [Juglist] Where is that Properties File T.A. Nguyen
