Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Jan Hoppmann wrote:Yeah, I meant that, sorry - I'm so used to call compiled code binaries, even though .class-files aren't.
Huh, okay, so I'll check the config files / ask Google how to config my Tomcat
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Jan Hoppmann wrote:Yeah, well, that is exactly my problem. I have a properties file in my project with the path to my classfiles (I need that for a class loader), but I can't open the properties file because I can't find it because I am in a different directory
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
Jan Hoppmann wrote:I tried to modify my method, first I used a File object and it didn't find the file, and the input stream doesn't work, either.
I placed the .properties-file in my WebContent/WEB-INF/classes dir, and my code looks like this:
When I run this, I get an NPE at Properties$LineReader.readLine.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |