Try re-sequencing your calls like this: String configPath = "C:/eclipse/workspace/uniproject/"; Properties systemProps = System.getProperties(); systemProps.put( "javax.net.ssl.trustStore", configPath+"uni_truststore.jks"); ...