GeeCON Prague 2014*
The moose likes Java in General and the fly likes java.net.MalformedURLException for applet url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "java.net.MalformedURLException for applet url" Watch "java.net.MalformedURLException for applet url" New topic
Author

java.net.MalformedURLException for applet url

Happy S Singh
Ranch Hand

Joined: Nov 14, 2011
Posts: 52
I have signed my applet and it is in jar.

I have added the below code in my jsp to embedd applet



but I get below exception

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
Try starting the URL with file://C:\...
It obviously needs a protocol e.g. http: or ftp, and I think the protocol for something already on your computer is file:// (but I am not certain).
 
GeeCON Prague 2014
 
subject: java.net.MalformedURLException for applet url