Hello Guest

[CLOSED] Applets using LWJGL through OpenJDK/IcedTea fail.

  • 3 Replies
  • 9052 Views
[CLOSED] Applets using LWJGL through OpenJDK/IcedTea fail.
« on: December 24, 2011, 00:06:24 »
I posted a bug against icedtea on this:

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=842

the problem happens in LWJGLUtil.java on the line:
final String osName = getPrivilegedProperty("os.name");

The problem occurs using the ubuntu 11 install when browsing to http://lwjgl.org/applet/ and other lwjgl applets.

MatthiasM suggested patching to suppress the access denied in this case.

 private static String getPrivilegedProperty(final String property_name) {
        try {
            return AccessController.doPrivileged(new PrivilegedAction<String>() {
                public String run() {
                    return System.getProperty(property_name);
                }
            });
        } catch (Exception e) {
            e.printStackTrace();
            return System.getProperty(property_name);
        }
    }


A quick google shows lots of jnlp + icedtea + lwjgl issues.
« Last Edit: January 18, 2012, 11:09:34 by kappa »

*

Offline Matzon

  • *****
  • 2242
Re: [BUG] Applets using LWJGL through OpenJDK/IcedTea fail.
« Reply #1 on: December 24, 2011, 09:33:41 »
have you confirmed that it works?

Re: [BUG] Applets using LWJGL through OpenJDK/IcedTea fail.
« Reply #2 on: December 24, 2011, 12:44:24 »
No i'm affraid i'm failing in building my own jars using ant.

This was merely a suggestion based upon the observation that gettin "os.name" without an attempt at elevated rights should complete without trouble.

I doubt the reason the http://lwjgl.org/applet/ fails has anything to do with lwjgl btw.

*

Offline kappa

  • *****
  • 1319
Re: [BUG] Applets using LWJGL through OpenJDK/IcedTea fail.
« Reply #3 on: January 18, 2012, 11:08:02 »
This is related to a problem with how the security manager works on the IcedTea Web Plugin, so yeh nothing to do with LWJGL code. There is another bug report here which highlights the issue in more detail. The IcedTea maintainers already have a fix for the LWJGL issue however they have not been applied it yet because they are waiting for some more security related architecture changes to go in before applying it.

Currently its aimed to be included in the IcedTea-Web 2.0 release, as shown by the RoadMap here.