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,775
  • 1
  • 23
  • 40

2 Answers2

2

If you are talking about SSL then

-Djavax.net.ssl.trustStore=path
Evgeniy Dorofeev
  • 133,369
  • 30
  • 199
  • 275
  • 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
  • 1
    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,777
  • 22
  • 42