Cannot run NetBeans OpenGL pack

I have installed the NetBeans plugins for OpenGL, but when I try to run the sample OpenGL examples I am getting the following exception …

Exception in thread “main” java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
at javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:520)
at javax.media.opengl.GLCanvas.(GLCanvas.java:131)
at javax.media.opengl.GLCanvas.(GLCanvas.java:90)
at javax.media.opengl.GLCanvas.(GLCanvas.java:83)
at demos.gears.JOGLGearsDemo.main(JOGLGearsDemo.java:19)
Java Result: 1

Has any one know what may be the possible cause and how to over come this …please tell me…
I have been struggling with this issue from a long time…
Thanks in advance…

Do you have a previous jogl installation somewhere on your global path or in the lib/ext folder of your JRE?

yes I previously i have copied the .dll and .jar files related to JOGL in my Java/jre folder.
Can you please tell me how to resolve this issue.

Regards

are you using netbeans opengl pack from https://netbeans-opengl-pack.dev.java.net/?
maybe you should clean your system from old versions of jogl: remove all jogl related files; jars and dlls, gluegen, and others, and then try to install openglpack again.

you can also look at http://www.java-gaming.org/forums/index.php?topic=18397.0

You may not have to reinstall the opengl pack. Just remove the dlls and jars from your jre folder and try again.

Hi I have removed jogl.jar, gluegen-rt.jar, jogl.dll and gluegen-rt.dll from java/jre directory even though i am facing the same problem…
please suggest

Please check, that you have a jogl-runtime folder in “C:\Documents and Settings<yourProfile>.netbeans<yourNBVersion>”. If yes, please report if it contains the jogl.jar, gluegen.jar and a natives folder for your OS/Platform containing the dlls.

yes I have a jogl-runtime folder in the path mentioned and also I have the jogl.jar, gluegen.jar and a natives folder for my OS/Platform containing the dlls. And also I do not have any jogl libraries in windows system folder.

anil,
would you like to install the two modules I uploaded and tell us if they work for you?
https://netbeans-opengl-pack.dev.java.net/servlets/ProjectDocumentList?folderID=8928

and don’t forget to make a clean build before you run your project.

Bienator,
Thanks for your reply.
I downloaded your modules and added them as plugins in the Neatbean.
Further I selected one prodect from OpenGL Demos, and I clean and Build the same.
But when I tried to run it I face the same problem.
Am i missing something or do I need to do some thing more.
Please guide, I am struggling with the same problem from couple of days.

Regards
Anil

I am out of ideas right now. If you have a ICQ or Skype account, please mail it to cylab (at) highteq (dot) net so we can discuss more effectively…

Guys thanks for all your replies and Suggestion. I was able to resolve the problem after uninstalling and deleting all the JDK and Netbeans related material. I guess
there might be some where jogl related .dll or .jar in the installation which I was unable to find out.

Thanks Once again.

Good to hear that it’s working now!