This week's book giveaway is in the
We're giving away four copies of
Node.js in Action
and have Mike Cantelon, Marc Harter, T.J. Holowaychuk and Nathan Rajlich on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Java in General
java.net.MalformedURLException for applet url
Happy S Singh
Joined: Nov 14, 2011
Jun 15, 2012 03:39:27
I have signed my
and it is in jar.
I have added the below code in my jsp to embedd applet
<applet name="viewerApplet" id="TViewerApplet" width="100%" height="500" code="TViewerApplet.class" codebase="/WEB-INF/lib" mayscript="mayscript" archive="C:/Eclipse_Workspace/Velocity/BSLI_MIS_VELOCITY/WebContent/WEB-INF/lib/SSignedTAppletViewer.jar">
but I get below exception
java.net.MalformedURLException: unknown protocol: c at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at sun.plugin.util.GrayBoxPainter.setProgressFilter(Unknown Source) at sun.plugin2.applet.Plugin2Manager.setupGrayBoxPainter(Unknown Source) at sun.plugin2.applet.Plugin2Manager.access$600(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) exception: name. java.lang.IllegalArgumentException: name at sun.plugin2.applet.Applet2ClassLoader.addJar(Unknown Source) at sun.plugin2.applet.Applet2Manager.loadJarFiles(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception: java.lang.IllegalArgumentException: name
Joined: Oct 13, 2005
Jun 15, 2012 07:22:33
Try starting the URL with
It obviously needs a protocol e.g. http: or ftp, and I think the protocol for something already on your computer is
(but I am not certain).
It is sorta covered in the
JavaRanch Style Guide
subject: java.net.MalformedURLException for applet url
My applet is not being seen in its jar anymore. Please help!
cannot open applet in firefox
Applet loads from i dont know where
Executable Jar file: Not working after being embedded within a html page?
Applet in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014