This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 56
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: 44555
    
  34
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.net.MalformedURLException for applet url
 
It's not a secret anymore!