We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I get the following error when I try to compile my code. Please suggest a solution for the same.
java.lang.RuntimeException: java.lang.NoSuchMethodError: processing.core.PApplet.registerDispose(Ljava/lang/Object;)V at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:484) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: processing.core.PApplet.registerDispose(Ljava/lang/Object;)V at SimpleOpenNI.SimpleOpenNI.initEnv(SimpleOpenNI.java:383) at SimpleOpenNI.SimpleOpenNI.(SimpleOpenNI.java:255) at bodyshape$Skeleton.kinectSetup(bodyshape.java:4965) at bodyshape.setup(bodyshape.java:298) at processing.core.PApplet.handleDraw(PApplet.java:2393) at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:907) at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692) at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674) at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293) at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147) at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759) at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81) at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452) at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)
Thanks in advance! :-bd
Answers
To be able to get feedback, you will need to provide a running example so people can reproduce it. Notice because you are working with SimpleOpenNI, responses will be limited to a handful of users. The more details you provide, the better in your case.
Kf
The answer(?) to this came up earlier today - registerDispose had been removed.
https://forum.processing.org/two/discussion/13463/simpleopenni-fails-with-processing-3-0
I do not have any method calling for registerDispose
I know. It's a core processing method, or was. It has been removed.
But one of they libraries you are using is still trying to call it, hence the problem.
Go back to Processing 2. Only way. Or wait for a new update to come for your library. Or do that job yourself.