1

How to make JVM search for .keystore file in user specified location instead of deafult location (user's home directory)?

Gopakumar N G
  • 1,627
  • 1
  • 21
  • 38

2 Answers2

2

If you are talking about SSL then

-Djavax.net.ssl.trustStore=path
Evgeniy Dorofeev
  • 129,181
  • 28
  • 195
  • 266
  • I am trying to build a project using ANT build, but the JVM looks for the .keystore file for the project in C:\Users\Gopakumar and not in the project directory. I want to make JVM looks for the keystore file in my project directory. – Gopakumar N G May 10 '13 at 11:07
  • Use `-Djavax.net.ssl.trustStorePassword=changeit` for the password – Jeni Apr 27 '22 at 11:32
1

Since you're doing an ant build you should just parameterise the SignJar task by setting the keystore parameter.

http://ant.apache.org/manual/Tasks/signjar.html

rxg
  • 3,637
  • 21
  • 41