Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Path to property file

 
alex ma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,

i was wondering how i can put the filepath to a property file in my program. I have a class Main with a main methode which uses a path to my property file. I also have a .bat file which calls this main methode. But this .bat file is in a folder in the java project. Therefore the .bat expect a differnt path (with prefix "../") to the property file.

how can i make my main methode runnable for both the .bat and the main it self.

thank you in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic