lwjgl_util_applet.jar - "The Application cannot be run" in 7u51

Started by teim, January 24, 2014, 05:13:25

Previous topic - Next topic

teim

Hello,

Security changes in the latest java update (7u51) seem to have broken our applet. The error received is as follows:
The application cannot be run.
Name: org.lwjgl.util.applet.AppletLoader
Reason: JAR manifest application-library-allowable-codebase mismatch for lwjgl_util_applet.jar

Our applet can be found here: http://interactive.vssec.vic.edu.au/starsearch/

I've noticed that the demo applet for LWJGL is also currently suffering from the same error: http://lwjgl.org/applet/

In accordance with the new java security requirements listed here: https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
We have tried the following:
1. Signing our code with a trusted certificate rather than self signing
2. Modifying our manifest files to comply with the template provided at the above URL
3. Updated from LWJGL 2.9.1 nightly build to LWJGL 2.9.1 release build

However, the problem still persists. Prior to these recent java changes the applet had been functioning for over two years. Is there anything we've missed with the new security requirements or is it possibly a bug introduced with 7u51 that is affecting LWJGL?

Thanks for your time.

Fool Running

Is this your problem: http://lwjgl.org/forum/index.php/topic,5206.0.html ? Or is this another security update that breaks things (It does look like a different problem)?  :-\
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

teim

I think it is a different issue. We did have that problem as well, but the LWJGL 2.9.1 nightly build mentioned in that thread fixed it for us.

douze12

Hello,

I have the same issue with Java 7u51. I found a solution by modifying the MANIFEST file of the lwjgl_util_applet.jar project :
Replace:
Application-Library-Allowable-Codebase: true

By
Application-Library-Allowable-Codebase: *


But with this modification I have another problem... When the applet try to be loaded a ClassNotFoundException is thrown on the class AppletLoader. I try with the example applet provided on the lwjgl website.

The Java console doesn't talk a lot :
CacheEntry[http://localhost:82/dungav/basic2/basic/lwjgl_util_applet.jar]: updateAvailable=true,lastModified=Sat Feb 22 12:29:23 CET 2014,length=40507
CacheEntry[http://localhost:82/dungav/basic2/basic/lwjgl_util_applet.jar]: updateAvailable=true,lastModified=Sat Feb 22 12:29:23 CET 2014,length=40507
CacheEntry[http://localhost:82/dungav/basic2/basic/lwjgl_util_applet.jar]: updateAvailable=true,lastModified=Sat Feb 22 12:29:23 CET 2014,length=40507
CacheEntry[http://localhost:82/dungav/basic2/basic/lwjgl_util_applet.jar]: updateAvailable=true,lastModified=Sat Feb 22 12:29:23 CET 2014,length=40507



Any idea of what's going on?

Thanks in advance  :)!

teim

I think to do something like that you have to delete the META-INF folder, then re-sign the .jar file. More information if you need it: http://davidbomba.com/unsign-resign-and-update-jar-manfests/

Let me know how it goes!

douze12

Hello,

Thanks a lot it works!

I 've deleted the LWJGL.DSA and LWJGL.SF from all the lwjgl jar files and then re-signed the jar and it works fine.

Thanks again!