Iam getting the following error when i make a HTTPS connection
can anybody tell me what is the reason for this error and how to rectify it.
java.lang.NoClassDefFoundError: sun/security/validator/KeyStores
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.TrustManagerFactoryImpl$SimpleFactory.a(Unknown Source)
at com.sun.net.ssl.internal.ssl.TrustManagerFactoryImpl.engineInit(Unknown Source)
at javax.net.ssl.TrustManagerFactory.init(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLContextImpl.e(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.<init>(Unknown Source)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at javax.net.ssl.SSLSocketFactory.getDefault(Unknown Source)
at com.sun.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(Unknown Source)
at com.sun.net.ssl.HttpsURLConnection.<init>(Unknown Source)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.<init>(Unknown Source)
at com.sun.net.ssl.internal.www.protocol.https.Handler.openConnection(Unknown Source)
at java.net.URL.openConnection(URL.java:781)
Exception in
thread "main"