SyntaxFix
Write A Post
Hire A Developer
Questions
I was getting the same error. For Java version 7, following is working for me.
java.lang.System.setProperty("https.protocols", "TLSv1.2");