Close
jGuru Forums
Posted By: Yi_Chen Posted On: Wednesday, July 11, 2001 03:13 PM
Hi, I am using JSSE in my Applet to access HTTPS site. The following exception was thrown out when executing URL url = new URL("https://mysecuresite.com:8080/servlet/test"); java.net.MalformedURLException: unknown protocol: https at java.net.URL. Unknown Source) at java.net.URL. (Unknown Source) at java.net.URL. (Unknown Source) I ckecked online resources and realized that this is a typical problem when HTTPS protocol handler and JSSE provider is not registered. I added the following lines to meet that: System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider()); I also include the JSSE package into the CLASSPATH and the Applet starting HTML apge. I suppose this will solve all my problem but the exception was still there. Do you have any idea what should i do now? Thanks, Yi
Re: MalformedURLException: unknown protocol: https
Posted By: John_Mitchell Posted On: Wednesday, July 11, 2001 04:17 PM