SecurityException with LWJGL Applet

Started by Dramentiaras, May 01, 2014, 09:49:45

Previous topic - Next topic

Dramentiaras

Hi! I'm trying to run a java applet on a website. When I do I get this exception:
java.lang.SecurityException: JAR manifest application-library-allowable-codebase  mismatch for file:/C:/Users/martin/Documents/Projects/web/my%20website/lwjgl_util_applet.jar


Here's the html tag I use to create the applet:

<applet code="org.lwjgl.util.applet.AppletLoader"
			archive="lwjgl_util_applet.jar"
			codebase="."
			width="800" height="600">

			<param name="separate_jvm" value="true">
					
			<param name="al_title" value="birdfish">
			<param name="al_jars" value="birdfish_applet.jar, slick.jar, PNGDecoder.jar,
				lwjgl_util.jar, lwjgl.jar, jinput.jar">
			<param name="al_main" value="dramen.ld29.base.LaunchApplet">

			<param name="al_windows" value="windows_natives.jar">
			<param name="al_linux" value="linux_natives.jar">
			<param name="al_mac" value="macosx_natives.jar">
			<param name="al_solaris" value="solaris_natives.jar">

</applet>


Please help me!

teim

It looks like the error I had. Check out this thread: http://lwjgl.org/forum/index.php/topic,5315.0.html

Basically you have to manually edit the manifest file of each .jar to change
Application-Library-Allowable-Codebase: true
to
Application-Library-Allowable-Codebase: *
then re-sign the .jars.

Dramentiaras

Alright, when I go through my jars, none of them have Application-Library-Allowable-Codebase in their manifests except for the lwjgl_util_applet.jar.
Can this be added or have I done something wrong?

teim

You can just manually add it. You will need to re-sign the jars though afterwards.