• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting keyStore and keyStorePassword...

 
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic