my dog learned polymorphism
The moose likes Beginning Java and the fly likes Path to property file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Path to property file" Watch "Path to property file" New topic
Author

Path to property file

alex ma
Greenhorn

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Path to property file
 
Similar Threads
Property file question
run a batch file (.bat) from java programm (.java)
Problem with javac and appletviewer
How can I distribute my Java desktop application?
windows BAT file