4632N/A java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("osx"));
4632N/A private static native void nativeInvokeNonPublic(Class<? extends Method> cls, Method m, String[] args);
4632N/A } catch (final IllegalAccessException x) {
4632N/A if ((excpt instanceof UnsatisfiedLinkError) && excpt.getMessage().equals("nativeInvokeNonPublic")) {
4632N/A showFailureAlertAndKill(kJavaFailureMainThrewException, "nativeInvokeNonPublic not registered");
4632N/A showFailureAlertAndKill(kJavaFailureMainThrewException, invokeExcpt.getTargetException().toString());
4632N/A final Class<?> mainClass = Class.forName(mainClassName, true, sun.misc.Launcher.getLauncher().getClassLoader());
4632N/A final Method mainMethod = mainClass.getDeclaredMethod("main", new Class[] { String[].class });
4632N/A return mainMethod;
4632N/A } catch (final ExceptionInInitializerError x) {
4632N/A logError("The main class \"" + mainClassName + "\" had a static initializer throw an exception.");
4632N/A } catch (final ClassNotFoundException x) {
4632N/A } catch (final NoSuchMethodException x) {
4632N/A } catch (final NullPointerException x) {
4632N/A log("Main class " + (String)javaMain + " found via 'MainClass' key of sub-dictionary 'Java' of Info.plist key");
4632N/A logError("'Arguments' key in 'Java' sub-dictionary of Info.plist requires a string value or an array of strings");
4632N/A } catch (final IOException x) {
4632N/A } catch (final IOException x) { }