Joanne
Branko Kranjcevic wrote:Thanks for your time. key.properties is the file that i have to make by myself. It's made in notepad and it has this values:
#Favorite Things
#Tue Jan 22 13:50:59 CET 2013
keystorepassword=****
keypassword=****
value=PRIVATE
path=C\:/Program files/iText/book/results/part3/chapter12
Joanne
Branko Kranjcevic wrote:Yes I've changed it to PRIVATE=value but the error is still on ..
Joanne
Joanne Neal wrote:
Branko Kranjcevic wrote:Yes I've changed it to PRIVATE=value but the error is still on ..
As I said, that is irrelevant. The problem is that you are getting the value of the wrong property at line 99.
Ulf Dittmer wrote:At present you're getting the value of property "PRIVATE". But the value of that property isn't the path (which is what you want to retrieve). What do you need to do to fix that?
Branko Kranjcevic wrote:
Ulf Dittmer wrote:At present you're getting the value of property "PRIVATE". But the value of that property isn't the path (which is what you want to retrieve). What do you need to do to fix that?
change "private" to path?
Joanne
Ulf Dittmer wrote:In which line? Which object is null? Post the full stack trace.
Ulf Dittmer wrote:In which line? Which object is null?
Branko Kranjcevic wrote:Thank you for suggestions. I've changed what you think should be changed and i get error on:
Exception in thread "main" java.lang.NullPointerException
Joanne
Joanne Neal wrote:
Branko Kranjcevic wrote:Thank you for suggestions. I've changed what you think should be changed and i get error on:
Exception in thread "main" java.lang.NullPointerException
If the only thing you have changed is which property you fetch on line 99, then you need to check that the value you are getting is now correct.
Add
after line 99 to see if it is now getting the correct value.
If it isn't then you need to work out why. Are you getting the correct property ? Does that property exist in the properties file with the correct value ?
Edit: I was a bit slow there wasn't I
Branko Kranjcevic wrote:I get this message:
Joanne
Ulf Dittmer wrote:Also for all directories above it, starting at the root, i.e. C: ?
look! it's a bird! it's a plane! It's .... a teeny tiny ad
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|