This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Setting keyStore and keyStorePassword... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Setting keyStore and keyStorePassword..." Watch "Setting keyStore and keyStorePassword..." New topic
Author

Setting keyStore and keyStorePassword...

john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

The only way my program runs is if I A. Run it from the command line (not an option because of users) or B. Put System.setProperty(...) in the start of main. If I put the System.setProperty's in the very beginning of the code (but not the "main" method), I get this error :


I need to put these System.setProperty's later because I will not be including these in my code. The user will have a field to type this in. My program will take this information and stick it in the setProperty section as appropriate.
Here is when it is okay and I get no errors (It runs perfectly) :


I get the errors if I do this :

I also tried (and got the same errors for) :


This also gave me the same error (Which I spent a bit of time on ) :



How can I make this work?
Thanks,
cc11rocks


“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
 
 
subject: Setting keyStore and keyStorePassword...