This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

Please help. Jar File problems

 
rang75
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
Im having problems reading a properties file from outside an executable jar. If I include the properties file anywhere inside the executable jar, I have no problems. I have explicitly set the classpath to location of the properties file using the -cp option
I'm reading the properties file using the following method:
java.net.URL filePath = ClassLoader.getSystemResource(iniFileName);
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Report post to moderator
rang75
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however, your name is not in keeping with our naming policy here at the ranch. Please re-register under an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Report post to moderator
rang75
Also, please try not to cross post your questions. Most of the people here spend time in multiple forums and will answer questions in more than one of them. Cross posting into multiple forums is a good way to show them you didn't read the forum topics or that you don't care - in the long run it is a good way to not get your questions answered. Since you asked this question in JIG (intermediate) I'm closing this one here.
 
    Bookmark Topic Watch Topic
  • New Topic