problem with GLProfile.initSingleton()
Posted by NickJPGeorge on Mar 13, 2011; 8:22pm
URL: https://forum.jogamp.org/problem-with-GLProfile-initSingleton-tp2673904.html
Hello, sorry for making 2 threads in one day, but I thought my question had diverged enough to warrant it.
I've got my webstart up until the point where it's actually running code (yay!), but I get this:
Caused by: javax.media.opengl.GLException: No profile available: [GL2, GL3bc, GL4bc, GL2GL3, GL3, GL4, GL2ES2, GLES2, GL2ES1, GLES1], GLAvailability[Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2 false, GL2ES1 false, GLES1 false, GL2ES2 false, GLES2 false], Profiles[, default null]]
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:995)
... 11 more
From the searching I tried, this looks like it would be an issue from moving from 1.1 to 2.0, but I have recent lib files. Also, I've played around with a lot of ways of exporting the jar- the one above comes from including all the used classes in a com folder in the jar, AND referencing the newt-all-awt jnlp. If I don't have the com folder in the jar, I get
java.lang.NullPointerException
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1584)
at javax.media.opengl.GLProfile.isGL4bcAvailable(GLProfile.java:151)
at javax.media.opengl.GLProfile.glAvailabilityToString(GLProfile.java:242)
at javax.media.opengl.GLProfile.glAvailabilityToString(GLProfile.java:310)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1283)
at javax.media.opengl.GLProfile.access$000(GLProfile.java:71)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:117)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:115)
at javax.media.opengl.GLProfile.validateInitialization(GLProfile.java:1428)
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1580)
at javax.media.opengl.GLProfile.get(GLProfile.java:623)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:480)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:486)
at isogame.IsoFrame.<init>(IsoFrame.java:199)
at isogame.IsoLauncher.main(IsoLauncher.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks,
Nick