Posted by
cicciottino@libero.it on
Jul 17, 2015; 1:14pm
URL: https://forum.jogamp.org/Processing-P3D-Raspberry-Pi-OpenGL-doesn-t-work-tp4034928.html
Processing P3D, Raspberry Pi, OpenGL doesn't work
in order to make "Processing" working on the RaspberryPI 2
i've downloaded and copied the content of
the package
http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7zinside the core\library folder of "processing 2.2.1"
(to solve the problem related to OpenGL ...at least i hope to have understood something about the problem )
before this operation the "Processing" error was:
[code]
glGetError 0x500
glGetError 0x500
java.lang.ClassCastException: javax.media.nativewindow.DefaultGraphicsConfiguration cannot be cast to com.jogamp.nativewindow.awt.AWTGraphicsConfiguration
at javax.media.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1421)
at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:630)
at java.awt.Container.addImpl(Container.java:1114)
at java.awt.Container.add(Container.java:966)
at processing.opengl.PJOGL.initSurface(PJOGL.java:347)
at processing.opengl.PGraphicsOpenGL.initPrimary(PGraphicsOpenGL.java:6310)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1653)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run(Thread.java:724)
[/code]
after that the error changed in :
[code]
java.lang.NoClassDefFoundError: javax/media/opengl/GLException
at processing.opengl.PGraphicsOpenGL.createPGL(PGraphicsOpenGL.java:1744)
at processing.opengl.PGraphicsOpenGL.<init>
(PGraphicsOpenGL.java:518)
at processing.opengl.PGraphics3D.<init>(PGraphics3D.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at processing.core.PApplet.makeGraphics(PApplet.java:1919)
at
processing.core.PApplet.size(PApplet.java:1771)
at processing.core.PApplet.size(PApplet.java:1742)
at MoveEye.setup(MoveEye.java:25)
at processing.core.PApplet.handleDraw
(PApplet.java:2361)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run
(Thread.java:724)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run
(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass
(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 15 more
[/code]
have i forgotten to do something after having copied the jars? do i need to update some path or change some configuration? or do something else?
i'm not so skilled with linux, sorry
Don't ban me if i've used the wrong section of the forum or the question was already discussed, please :-(
-Raspberry 2
-Oracle Java 1.7.0_40-b43
-Processing 2.2.1