Exception in thread “main” javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException:the trustAnchors parameter must be non-empty
sudo apt install ca-certificates-java
cp /etc/ssl/certs/java/cacerts /path/to/jdk-xxxx/lib/security/cacerts