Software⏱️ 2 min read📅 2026-06-02

How to Fix: Error - trustAnchors parameter must be non-empty

Fix Error - trustAnchors parameter must be non-empty. Try setting the trustAnchors parameter t. Step-by-step guide included.

Quick Answer: Try setting the trustAnchors parameter to a valid keystore file, such as -Djavax.net.ssl.trustStore=/path/to/keystore.jks -Djavax.net.ssl.trustStorePassword=your_password

The error 'Error - trustAnchors parameter must be non-empty' occurs when the Java runtime environment is unable to verify the digital signature of a certificate due to an invalid or missing list of trusted anchors.

🛠️ Step-by-Step Verified Fixes

Method 1: Adding the Java Truststore

  1. Step 1: Locate the truststore file for your JDK installation.

Method 2: Updating the Java System Properties

  1. Step 1: Set the JAVA_HOME environment variable to point to your JDK installation directory.

💡 Conclusion

By following these steps, you should be able to resolve the 'Error - trustAnchors parameter must be non-empty' error and successfully configure your email on Jenkins/Hudson.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions