\r
public class JoglNativesLoader {\r
static boolean nativesLoaded = false;\r
- \r
+\r
/**\r
* loads the necessary libraries depending on the operating system\r
*/\r
com.sun.gluegen.runtime.NativeLibLoader.disableLoading();\r
// By wkien: On some systems (read: mine) jogl_awt would not find its\r
// dependency jawt if not loaded before\r
- if(System.getProperty("os.name").contains("Windows"))\r
- System.loadLibrary("jawt");\r
+ if (System.getProperty("os.name", "").contains("Windows")\r
+ && !System.getProperty("libgdx.nojawtpreloading", "false")\r
+ .contains("true")) {\r
+ try {\r
+ System.loadLibrary("jawt");\r
+ } catch (Exception ex) {\r
+ System.err\r
+ .println("WARNING: Unable to load native jawt library: '"\r
+ + ex.getMessage() + "'");\r
+ }\r
+ }\r
loadLibrary("gluegen-rt");\r
loadLibrary("jogl_awt");\r
loadLibrary("jogl");\r