Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Security Exception: MalformedURLException: unknown protocol: socket during opening JNLP file

OS: Windows 7 32-bit JDK: jdk1.7.0_25

I have Studio.jnlp file. I tried to open it by double-click. But I found the error as below:

"MalformedURLException: unknown protocol: socket" Details: java.net.MalformedURLException: unknown protocol: socket

Summary of Exception

Details of Exception

like image 751
Ripon Al Wasim Avatar asked Jul 19 '13 03:07

Ripon Al Wasim


2 Answers

Go to Control Panel of Windows and do the followings:

Click Java -> Click "Network Settings..." button under General tab -> Select Direct connection radio -> Click OK

That's it. Exception could be removed.

like image 190
Ripon Al Wasim Avatar answered Nov 20 '22 21:11

Ripon Al Wasim


This message comes from the use of a proxy server which is not fully set in Internet options (in Internet Explorer).

When a proxy server is set manually, but with the option "use this server for all protocols", Internet Explorer does not fill the "Socks" protocol field with it.

Direct connection works, because you bypass this proxy configuration set in IE. But another way to fix this is to uncheck "use this server for all protocols", and instead paste it in the socks field as well.

It should solve the issue without having to bypass the proxy for all Java programs.


However, this is assuming that your proxy server knows what to do with this protocol, and how to direct it to the correct place. If it doesn't, then you are probably better off trying direct connection.

like image 2
Gnoupi Avatar answered Nov 20 '22 20:11

Gnoupi