Processing 3 keeps throwing an error, when I try to run any Java code!

Exception in thread “Thread-25” java.lang.RuntimeException: Exception while attempting /usr/lib/jvm/java-8-openjdk/bin/java -agentlib:jdwp=transport=dt_socket,address=8357,server=y,suspend=y,quiet=y -Djna.nosys=true -Djava.ext.dirs=/usr/lib/jvm/java-8-openjdk/lib/ext -Djava.library.path=:/usr/share/processing/core/library:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib -cp /tmp/sketch_190901a6340003778287887050temp:/usr/share/processing/core/library/gluegen-rt-natives-linux-aarch64.jar:/usr/share/processing/core/library/gluegen-rt-natives-macosx-universal.jar:/usr/share/processing/core/library/core.jar:/usr/share/processing/core/library/jogl-all-natives-windows-i586.jar:/usr/share/processing/core/library/jogl-all-natives-linux-armv6hf.jar:/usr/share/processing/core/library/gluegen-rt-natives-linux-i586.jar:/usr/share/processing/core/library/jogl-all-natives-linux-amd64.jar:/usr/share/processing/core/library/jogl-all.jar:/usr/share/processing/core/library/gluegen-rt.jar:/usr/share/processing/core/library/jogl-all-natives-macosx-universal.jar:/usr/share/processing/core/library/jogl-all-natives-windows-amd64.jar:/usr/share/processing/core/library/gluegen-rt-natives-windows-amd64.jar:/usr/share/processing/core/library/gluegen-rt-natives-windows-i586.jar:/usr/share/processing/core/library/gluegen-rt-natives-linux-amd64.jar:/usr/share/processing/core/library/gluegen-rt-natives-linux-armv6hf.jar:/usr/share/processing/core/library/jogl-all-natives-linux-i586.jar:/usr/share/processing/core/library/jogl-all-natives-linux-aarch64.jar:/usr/lib/jvm/java-8-openjdk/jre/lib/rt.jar:/usr/share/processing/lib/ant.jar:/usr/share/processing/lib/ant-launcher.jar:/usr/share/processing/lib/jna.jar:/usr/share/processing/lib/jna-platform.jar:/usr/share/processing/lib/pde.jar:/usr/share/processing/core/library/core.jar:/usr/share/processing/core/library/gluegen-rt.jar:/usr/share/processing/core/library/gluegen-rt-natives-linux-aarch64.jar:/usr/share/processing/core/library/gluegen-rt-natives-linux-amd64.jar:/usr/share/processing/core/library/gluegen-rt-natives-linux-armv6hf.jar:/usr/share/processing/core/library/gluegen-rt-natives-linux-i586.jar:/usr/share/processing/core/library/gluegen-rt-natives-macosx-universal.jar:/usr/share/processing/core/library/gluegen-rt-natives-windows-amd64.jar:/usr/share/processing/core/library/gluegen-rt-natives-windows-i586.jar:/usr/share/processing/core/library/jogl-all.jar:/usr/share/processing/core/library/jogl-all-natives-linux-aarch64.jar:/usr/share/processing/core/library/jogl-all-natives-linux-amd64.jar:/usr/share/processing/core/library/jogl-all-natives-linux-armv6hf.jar:/usr/share/processing/core/library/jogl-all-natives-linux-i586.jar:/usr/share/processing/core/library/jogl-all-natives-macosx-universal.jar:/usr/share/processing/core/library/jogl-all-natives-windows-amd64.jar:/usr/share/processing/core/library/jogl-all-natives-windows-i586.jar:/usr/share/processing/modes/java/mode/antlr.jar:/usr/share/processing/modes/java/mode/classpath-explorer-1.0.jar:/usr/share/processing/modes/java/mode/com.ibm.icu.jar:/usr/share/processing/modes/java/mode/JavaMode.jar:/usr/share/processing/modes/java/mode/jdi.jar:/usr/share/processing/modes/java/mode/jdimodel.jar:/usr/share/processing/modes/java/mode/jdtCompilerAdapter.jar:/usr/share/processing/modes/java/mode/jsoup-1.7.1.jar:/usr/share/processing/modes/java/mode/org.eclipse.core.contenttype.jar:/usr/share/processing/modes/java/mode/org.eclipse.core.jobs.jar:/usr/share/processing/modes/java/mode/org.eclipse.core.resources.jar:/usr/share/processing/modes/java/mode/org.eclipse.core.runtime.jar:/usr/share/processing/modes/java/mode/org.eclipse.equinox.common.jar:/usr/share/processing/modes/java/mode/org.eclipse.equinox.preferences.jar:/usr/share/processing/modes/java/mode/org.eclipse.jdt.core.jar:/usr/share/processing/modes/java/mode/org.eclipse.osgi.jar:/usr/share/processing/modes/java/mode/org.eclipse.text.jar:/usr/share/processing/modes/java/mode/org.netbeans.swing.outline.jar -ea processing.core.PApplet --display=-1 --sketch-path=/tmp/untitled3209995273607147189sketches/sketch_190901a sketch_190901a
at processing.core.PApplet.exec(PApplet.java:3563)
at processing.mode.java.runner.Runner$1.run(Runner.java:498)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Cannot run program “/usr/lib/jvm/java-8-openjdk/bin/java”: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.core.PApplet.exec(PApplet.java:3561)
… 2 more
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:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 5 more

How can I solve it?

You need to provide some additional information.

When you launch Processing 3 does it show the normal PDE (Processing window)?
If it does have you tried running the examples that come with Processing?
If not do so.

If the examples execute normally you need to give more information about the code you are trying to run.

1 Like

Everything crashes like this. No exceptions.

  • what hardware and OS you use
  • what processing you download and install how

Manjaro Linux, Processing 3 installed through AUR

try download ++ unzip ++ run local from path ./processing

http://download.processing.org/processing-3.5.3-linux64.tgz

1 Like