This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi, buddies! I've packaged my Java app into a runnable jar file, which beyound the .class files also include a "conf/conf.properties". Therefore, my app.jar looks like this:
The problem is that my app runnable class can't find the "conf/conf.properties". The error is "The system cannot find the path specified".
If I take it out and put it in a directory ("conf/conf.properties"), everything works just fine.
Does it mean I have to put the conf/conf.properties outside the .jar file? Or am I doing some kind of ? Thanks in advance.
Fernando
"In the case of a nuclear attack, the protection of our records is essential, if this country is to carry on its economy and maintain our way of life."
the last time I needed something like that, I used that piece of code :
Can't remember another way ... hope that one is ok for you ! Arnaud
Fernando Matias Valadao
Greenhorn
Joined: Feb 19, 2003
Posts: 26
posted
0
Thank you for replying, Arnaud, but are you sure it works? I have tried it the way you posted but the input stream is empty. Do you have any idea why this is happening?