Java Code Examples for java.security.AccessControlException#printStackTrace()

The following examples show how to use java.security.AccessControlException#printStackTrace() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JVM.java    From pumpernickel with MIT License 5 votes vote down vote up
private static String getOSName() {
	try {
		String s = (System.getProperty("os.name").toLowerCase());
		return s;
	} catch (AccessControlException e) {
		e.printStackTrace();
		return "unknown";
	}
}
 
Example 2
Source File: JVM.java    From pumpernickel with MIT License 5 votes vote down vote up
private static boolean isUsingQuartz() {
	try {
		return isMac
				&& ((javaVersion > 0 && javaVersion < 1.4f) || (System
						.getProperty("apple.awt.graphics.UseQuartz") != null && System
						.getProperty("apple.awt.graphics.UseQuartz")
						.toString().equals("true")));
	} catch (AccessControlException e) {
		e.printStackTrace();
		return false;
	}
}
 
Example 3
Source File: JVM.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
private static String getOSName() {
	try {
		String s = (System.getProperty("os.name").toLowerCase());
		return s;
	} catch(AccessControlException e) {
		e.printStackTrace();
		return "unknown";
	}
}
 
Example 4
Source File: JVM.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isUsingQuartz() {
	try {
		return isMac && ((javaVersion>0 && javaVersion<1.4f) || (System.getProperty("apple.awt.graphics.UseQuartz")!=null && System.getProperty("apple.awt.graphics.UseQuartz").toString().equals("true")));
	} catch(AccessControlException e) {
		e.printStackTrace();
		return false;
	}
}
 
Example 5
Source File: JVM.java    From Pixelitor with GNU General Public License v3.0 5 votes vote down vote up
private static boolean isUsingQuartz() {
    try {
        return isMac && ((javaVersion > 0 && javaVersion < 1.4f) || (System
                .getProperty("apple.awt.graphics.UseQuartz") != null && System
                .getProperty("apple.awt.graphics.UseQuartz").equals("true")));
    } catch (AccessControlException e) {
        e.printStackTrace();
        return false;
    }
}