I used this Java code from here and when I try to download a file with Google Disk shared link with https I get an error:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
As I understand, I have to set in the code:
System.setProperty("javax.net.ssl.trustStore","/usr/lib/jvm/default-java/lib/security/cacerts");
Where in the code I have to put it and what if I run it on Windows PC later?