This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Path to property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Path to property file" Watch "Path to property file" New topic

Path to property file

alex ma

Joined: Mar 08, 2012
Posts: 1
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
Have you checked out Aspose?
subject: Path to property file
jQuery in Action, 3rd edition