when try run jogl swing test code, error message saying:
exception in thread "main" java.lang.noclassdeffounderror: com/sun/nativewindow/impl/jvm/jvmutil @ javax.media.opengl.glprofile.<clinit>(glprofile.java:625) @ com.jojodmo.wizardgame.main.main(main.java:34) caused by: java.lang.classnotfoundexception: com.sun.nativewindow.impl.jvm.jvmutil @ java.net.urlclassloader.findclass(urlclassloader.java:381) @ java.lang.classloader.loadclass(classloader.java:424) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:331) @ java.lang.classloader.loadclass(classloader.java:357) ... 2 more
line 34 of main.java
has line, glprofile
javax.media.opengl.glprofile
:
glprofile glprofile = glprofile.getdefault()
and first time jogl in file. i'm using jogl 2.0, , file i'm using called jogl-2.0-macosx-universal.zip
(i've tried using version 1.1.1, same result, on top of fact outdated). it's downloaded java.net, isn't official, , may problem, i'm not sure.
i'm importing both gluegen-rt.jar
, jogl.all.jar
eclipse:
and i'm setting native library location
folder contains .jnilib
, .so
files:
is problem i'm using swing
awt
, or other error?
there conflict jogl 1, please uninstall it, remove jvm and/or directories used extension mechanism. "com/sun" no longer present in jogl 2.3.1 (currently, june 2015). jogl 2.0 obsolete, jogl.all.jar has been renamed jogl-all.jar in meantime. please follow our instructions available on our wiki: http://jogamp.org/wiki/index.php/setting_up_a_jogamp_project_in_your_favorite_ide
p.s: oracle abandoned jogl in november 2009, has been actively maintained jogamp community. i'm responsible engine support.
Comments
Post a Comment