Programming => Lightweight Java Gaming Library => Topic started by: isteinvids on July 21, 2013, 23:40:12

Title: 'No protocol' Exception in LWJGL Applet
Post by: isteinvids on July 21, 2013, 23:40:12
Note - This applet did work before I updated my Java to latest update.

I'm getting this error on Chrome and Firefox.
The file MC2D.jar does exist and is in the same directory the HTML file is in. And so are the other libraries/natives.

Thanks for the help!

Code: [Select]
java.net.MalformedURLException: no protocol: MC2D.jar
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.lwjgl.util.applet.AppletLoader.loadJarURLs(AppletLoader.java:805)
at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:840)
at java.lang.Thread.run(Unknown Source)

HTML Code:
Code: [Select]
    <applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar" width="600" height="400">
        <param name="al_title" value="test">

        <param name="al_main" value="org.newdawn.slick.AppletGameContainer">
        <param name="game" value="me.knighthood.MainGame">

        <param name="al_jars" value="MC2D.jar, jinput.jar, lwjgl.jar, slick.jar">

        <!-- signed jars containing the native files for each pathform -->
        <param name="al_windows" value="natives-windows.jar">
        <param name="al_linux" value="natives-linux.jar">
        <param name="al_mac" value="natives-mac.jar">

        alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason. Check to see if Java Browser

Plugin is installed properly"
        Your browser is completely ignoring the &lt;APPLET&gt; tag!, Check to see if Java Browser Plugin is installed properly