Absolute or Root Path for getClass().getResourceAsStream()
Hi everyone,
I'm somewhat of a Java Newbie and I have a Problem with concerning my properties file. My project is rather large and I'm using the following line for loading my properties file:
Properties prop = new Properties();
prop.load(getClass().getResourceAsStream("project.properties"));
Now if the prop-file is in the same folder as my java class it's working and this applies to relative paths. But with an absolute path it doesn't and I was wondering if any of you guys would have an idea how to adopt a absolute path or maybe some kind of class root path or you know another needo solution to my properties problem.
thanx in advance :)
& ciao 4 now
Julian

