java.lang.NoClassDefFoundError: javax/media/opengl/GLException
I try to get a processing frame to work with OpenGL.
I used "max.dynamic.jar.dir /Users/doekewartena/IdeaProjects/libs" to point to all jar's I need.
This one is included (I can see it in the ma window):
/Users/doekewartena/IdeaProjects/libs/jogl-all.jar
But when i create the mxj object with the required code i get:
java.lang.NoClassDefFoundError: javax/media/opengl/GLException
If i rename jogl-all.jar to zip then i can see javax/media/opengl/GLException.class.
If i add (to point to the just unzipped):
max.dynamic.class.dir /Users/doekewartena/IdeaProjects/libs/jogl-all
Then it still can't find the GLException.
What can i do?
I tried to continue without OpenGl.
I keep having similar problems.
For example:
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: client1/Sequencer
The file is located here:
/Users/doekewartena/IdeaProjects/MarkerMusic_01/out/production/MarkerMusic_01/client1/Sequencer.class
So i use:
max.dynamic.class.dir /Users/doekewartena/IdeaProjects/MarkerMusic_01/out/production/MarkerMusic_01
But it doesn't work. I think Max is bugged like hell.
As you say, you want max.dynamic.jar.dir (not class.dir) to point at a JAR file.
Having said that, I'm not sure what you're trying to achieve. Where is your OpenGL going to be rendering?
Something else looks odd, the NoClassDefFoundError client1/Sequencer (rather than client1.Sequencer), suggesting a problem with the way the classpath is set up. How are you attempting to access the class?
I want to render the OpenGL in a Frame. I can already render in a Frame with java2d.
About the client1/Sequencer (rather than client1.Sequencer), NoClassDefFoundError always reports with slashes instead of dots so that's ok.
For the rest, i try to get the OpenGL of processing to work (www.processing.org).
To get it in processing it's nothing more then changing:
size(600, 600);
to
size(600, 600, OPENGL);
All the inner working does the rest. It does depend on quite some jar files, but i have all those in /Users/doekewartena/IdeaProjects/libs
.
I'm 100% sure every jar I need is there cause i can run the program from IntelliJ itself (it's an editor like eclipse).