LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: teim on January 24, 2014, 05:13:25

Title: lwjgl_util_applet.jar - "The Application cannot be run" in 7u51
Post by: teim on January 24, 2014, 05:13:25
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/ (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/ (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 (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.
Title: Re: lwjgl_util_applet.jar - "The Application cannot be run" in 7u51
Post by: Fool Running on January 24, 2014, 13:35:12
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)?  :-\
Title: Re: lwjgl_util_applet.jar - "The Application cannot be run" in 7u51
Post by: teim on January 26, 2014, 11:19:27
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.
Title: Re: lwjgl_util_applet.jar - "The Application cannot be run" in 7u51
Post by: douze12 on February 22, 2014, 11:37:35
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  :)!
Title: Re: lwjgl_util_applet.jar - "The Application cannot be run" in 7u51
Post by: teim on February 22, 2014, 16:04:35
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!
Title: Re: lwjgl_util_applet.jar - "The Application cannot be run" in 7u51
Post by: douze12 on February 23, 2014, 21:34:07
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!