Bug with processing on Mac OS High Sierra

Hello
Since I have change my os to high Sierra, Processing crash and didn’t show me an image.

Somebody can help me to fix that bug cause I need to use processing with Isadora for a futur show in france
Thanks
Gerald

Processing show this message.

java.io.IOException: Cannot run program “/Applications/Processing 2.2.1.app/Contents/PlugIns/jdk1.7.0_55.jdk/Contents/Home/jre/bin/java”: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at java.lang.Runtime.exec(Runtime.java:617)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.core.PApplet.exec(PApplet.java:4041)
at processing.mode.java.runner.Runner$1.run(Runner.java:437)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:184)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
… 5 more
Exception in thread “Thread-9” java.lang.RuntimeException: Could not open /Applications/Processing 2.2.1.app/Contents/PlugIns/jdk1.7.0_55.jdk/Contents/Home/jre/bin/java -agentlib:jdwp=transport=dt_socket,address=8462,server=y,suspend=y -Xdock:name=Isadora_Kinect_Tracking_Mac -Djava.library.path=:/Users/geraldgroult/Documents/Processing/libraries/SimpleOpenNI/library:/Users/geraldgroult/Documents/Processing/libraries/oscP5/library:/Users/geraldgroult/Documents/Processing/libraries/Syphon/library::/Applications/Processing 2.2.1.app/Contents/Java:/Applications/Processing 2.2.1.app/Contents/MacOS -cp /var/folders/40/z03nk_2n551_12lhnm5tj_f80000gn/T/Isadora_Kinect_Tracking_Mac6216168293033695751temp:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-linux-armv6hf.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-linux-armv6hf.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-macosx-universal.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-linux-amd64.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-linux-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-windows-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-linux-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-linux-amd64.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/core.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-macosx-universal.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-windows-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-windows-amd64.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-windows-amd64.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-linux-armv6hf.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-linux-armv6hf.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-macosx-universal.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-linux-amd64.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-linux-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-windows-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-linux-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-linux-amd64.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/core.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-macosx-universal.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-windows-i586.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/gluegen-rt-natives-windows-amd64.jar:/Applications/Processing 2.2.1.app/Contents/Java/core/library/jogl-all-natives-windows-amd64.jar:/Users/geraldgroult/Documents/Processing/libraries/SimpleOpenNI/library/SimpleOpenNI.jar:/Users/geraldgroult/Documents/Processing/libraries/SimpleOpenNI/library/SimpleOpenNI.jar:/Users/geraldgroult/Documents/Processing/libraries/oscP5/library/oscP5.jar:/Users/geraldgroult/Documents/Processing/libraries/oscP5/library/oscP5.jar:/Users/geraldgroult/Documents/Processing/libraries/Syphon/library/jsyphon.jar:/Users/geraldgroult/Documents/Processing/libraries/Syphon/library/Syphon.jar:/Users/geraldgroult/Documents/Processing/libraries/Syphon/library/jsyphon.jar:/Users/geraldgroult/Documents/Processing/libraries/Syphon/library/Syphon.jar:/Applications/Processing 2.2.1.app/Contents/Java:/Applications/Processing 2.2.1.app/Contents/Java/org-netbeans-swing-outline.jar:/Applications/Processing 2.2.1.app/Contents/Java/com.ibm.icu_4.4.2.v20110823.jar:/Applications/Processing 2.2.1.app/Contents/Java/ant.jar:/Applications/Processing 2.2.1.app/Contents/Java/jdi.jar:/Applications/Processing 2.2.1.app/Contents/Java/ant-launcher.jar:/Applications/Processing 2.2.1.app/Contents/Java/org.eclipse.osgi_3.8.1.v20120830-144521.jar:/Applications/Processing 2.2.1.app/Contents/Java/antlr.jar:/Applications/Processing 2.2.1.app/Contents/Java/core.jar:/Applications/Processing 2.2.1.app/Contents/Java/jna.jar:/Applications/Processing 2.2.1.app/Contents/Java/jdimodel.jar:/Applications/Processing 2.2.1.app/Contents/Java/pde.jar -ea processing.core.PApplet --editor-location=606,127 --external --display=0 Isadora_Kinect_Tracking_Mac --sketch-path=/Users/geraldgroult/Documents/isadora docs/Isadora_Kinect_Tracking_Mac
at processing.core.PApplet.exec(PApplet.java:4044)
at processing.mode.java.runner.Runner$1.run(Runner.java:437)
at java.lang.Thread.run(Thread.java:745)

Does this happen with a spefic sketch or for all sketch.
What version of Processing 2.2.1 ? did you try a newer version?

i ve try both processing 2.2.1 and processing 3
and it’s the same problem

Make sure that this file exist

it shows this bug with processing 3

:

2018-11-30 17:23:38.192 java[1075:35882] pid(1075)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
Setup Canvas
– Canvas Setup Complete
Setup Syphon
Syphon 2.0 by Andres Colubri http://andrescolubri.net/
Setup OpenNI
java.lang.RuntimeException: java.lang.NoSuchMethodError: processing.core.PApplet.registerDispose(Ljava/lang/Object;)V
at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:412)
at java.lang.Thread.run(Thread.java:748)
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 Isadora_Kinect_Tracking_Mac.setupOpenNI(Isadora_Kinect_Tracking_Mac.java:75)
at Isadora_Kinect_Tracking_Mac.setup(Isadora_Kinect_Tracking_Mac.java:256)
at processing.core.PApplet.handleDraw(PApplet.java:2404)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
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)

Maybe the Kinect library is causing this bug, make sure that all the Library are well instaled.

following this report

/Applications/Processing 2.2.1.app/Contents/PlugIns/jdk1.7.0_55.jdk/Contents/Home/jre/bin/

i ve got nothing in bin java doesn’t exist

how can I fix it

Since Processing work with Java , I would try to reinstall the latest Java .

done
but it still the same
thanks
Gerald

The initial error is saying it cannot find the java executable. It will be a bit hard to debug and I will try to help as much as I can. Do these:

  1. Go to the directory and confirm that java is indeed not there in that directory
  2. Open a terminal and type java --version. What do you get?
  3. If you get a version number, what version do you have? You can type which java to see the location of the executable. This would be a start.

Can you provide the output of the following commands (Run them in a terminal)? env and echo $PATH. Tell me about the location of your sketchbook and Processing’s main files.

Kf

Kf

Try to install Processing Java again, could have been uninstalled when you updated your OS.

Hey Gerald–your first error is because that version of Java is gone from your new OS installation (jdk 1.7 is super old).

Your second is a bit trickier, a NoSuchMethodError occurs when a library under the hood is using something that doesn’t exist anymore. In your case, I think it’s because you’re using a version of SimpleOpenNI for Processing 2 and need to install a different version of the plugin. https://github.com/totovr/SimpleOpenNI

In general when you see Exception in Java it’s from a problem within the code, when you see Error it’s caused by something outside the code.

1 Like