From a9c8a6e9b35b2e421eb9609171c0d9fd7e53ee57 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 22 Jan 2007 23:27:49 +0000 Subject: Fixed Issue 264: SecurityException in JOGLAppletLauncher if JOAL not present Made JOGLAppletLauncher more robust to exceptions thrown from Class.forName() looking up AL.class. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1098 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/util/JOGLAppletLauncher.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/classes/com/sun/opengl/util') diff --git a/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java b/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java index 4b68f7ff7..cfee6bde6 100755 --- a/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java +++ b/src/classes/com/sun/opengl/util/JOGLAppletLauncher.java @@ -588,7 +588,11 @@ public class JOGLAppletLauncher extends Applet { try { Class alClass = Class.forName("net.java.games.joal.AL", false, this.getClass().getClassLoader()); haveJOAL = true; - } catch (ClassNotFoundException cnfe) { + // Note: it seems that some JRE implementations can throw + // SecurityException as well as ClassNotFoundException, at least + // if the OpenAL classes are not present and the web server + // redirects elsewhere + } catch (Exception e) { } String[] nativeJarNames = new String[] { -- cgit v1.2.3