LWJGL
May 19, 2013, 06:35:44 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [CLOSED] Applets using LWJGL through OpenJDK/IcedTea fail.  (Read 1195 times)
bartwe
Newbie
*
Posts: 2


« on: December 23, 2011, 16: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.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #1 on: December 24, 2011, 01:33:41 »

have you confirmed that it works?
Logged

bartwe
Newbie
*
Posts: 2


« Reply #2 on: December 24, 2011, 04: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.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1111



« Reply #3 on: January 18, 2012, 03: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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!