I used this Java code from [here](http://www.codejava.net/coding/swing-application-to-download-files-from-http-server-with-progress-bar) 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?