processing-java not working

edited November 2017 in Using Processing

Hey all, I am using processing 3.3.6 on Windows 10 and I have been trying to get the command line to open. When I click on java-processing it brings up the command prompt for a split second and then disappears. I am able to run processing just fine but not the command line. I deleted the preferences file and also disabled my anti-virus and that doesn't seem to work either. I also tried turning off the firewall but that didn't fix it either.

Any help with trying to fix this problem would be greatly appreciated. Thanks

I ran the command \processing-java.exe --l4j-debug in the command prompt and it gave me this output:

Version:    3.9
CmdLine:    W:\Downloads\processing-3.3.6-windows64\processing-3.3.6\processing-java.exe  --l4j-debug
WOW64:      yes
Working dir:    W:\Downloads\processing-3.3.6-windows64\processing-3.3.6\.
Bundled JRE:    java
Check launcher: W:\Downloads\processing-3.3.6-windows64\processing-3.3.6\java\bin\java.exe (OK)
Heap -Xmx:  Requested 256 MB / 0%, Available: 12346 MB, Heap size: 256 MB
Substitute: EXEDIR = W:\Downloads\processing-3.3.6-windows64\processing-3.3.6
Add classpath:  lib\*.jar
      "      :  lib\ant-launcher.jar
      "      :  lib\ant.jar
      "      :  lib\jna-platform.jar
      "      :  lib\jna.jar
      "      :  lib\pde.jar
Add classpath:  core\library\*.jar
      "      :  core\library\core.jar
      "      :  core\library\gluegen-rt-natives-linux-aarch64.jar
      "      :  core\library\gluegen-rt-natives-linux-amd64.jar
      "      :  core\library\gluegen-rt-natives-linux-armv6hf.jar
      "      :  core\library\gluegen-rt-natives-linux-i586.jar
      "      :  core\library\gluegen-rt-natives-macosx-universal.jar
      "      :  core\library\gluegen-rt-natives-windows-amd64.jar
      "      :  core\library\gluegen-rt-natives-windows-i586.jar
      "      :  core\library\gluegen-rt.jar
      "      :  core\library\jogl-all-natives-linux-aarch64.jar
      "      :  core\library\jogl-all-natives-linux-amd64.jar
      "      :  core\library\jogl-all-natives-linux-armv6hf.jar
      "      :  core\library\jogl-all-natives-linux-i586.jar
      "      :  core\library\jogl-all-natives-macosx-universal.jar
      "      :  core\library\jogl-all-natives-windows-amd64.jar
      "      :  core\library\jogl-all-natives-windows-i586.jar
      "      :  core\library\jogl-all.jar
Add classpath:  modes\java\mode\*.jar
      "      :  modes\java\mode\antlr.jar
      "      :  modes\java\mode\classpath-explorer-1.0.jar
      "      :  modes\java\mode\com.ibm.icu.jar
      "      :  modes\java\mode\JavaMode.jar
      "      :  modes\java\mode\jdi.jar
      "      :  modes\java\mode\jdimodel.jar
      "      :  modes\java\mode\jdtCompilerAdapter.jar
      "      :  modes\java\mode\jsoup-1.7.1.jar
      "      :  modes\java\mode\org.eclipse.core.contenttype.jar
      "      :  modes\java\mode\org.eclipse.core.jobs.jar
      "      :  modes\java\mode\org.eclipse.core.resources.jar
      "      :  modes\java\mode\org.eclipse.core.runtime.jar
      "      :  modes\java\mode\org.eclipse.equinox.common.jar
      "      :  modes\java\mode\org.eclipse.equinox.preferences.jar
      "      :  modes\java\mode\org.eclipse.jdt.core.jar
      "      :  modes\java\mode\org.eclipse.osgi.jar
      "      :  modes\java\mode\org.eclipse.text.jar
      "      :  modes\java\mode\org.netbeans.swing.outline.jar
Launcher:   W:\Downloads\processing-3.3.6-windows64\processing-3.3.6\java\bin\java.exe
Launcher args:  -Xmx256m -Djava.ext.dirs="W:\Downloads\processing-3.3.6-windows64\processing-3.3.6\\java\\lib\\ext" -Djna.nosys=true -classpath "lib;lib\ant-launcher.jar;lib\ant.jar;lib\jna-platform.jar;lib\jna.jar;lib\pde.jar;core\library\core.jar;core\library\gluegen-rt-natives-linux-aarch64.jar;core\library\gluegen-rt-natives-linux-amd64.jar;core\library\gluegen-rt-natives-linux-armv6hf.jar;core\library\gluegen-rt-natives-linux-i586.jar;core\library\gluegen-rt-natives-macosx-universal.jar;core\library\gluegen-rt-natives-windows-amd64.jar;core\library\gluegen-rt-natives-windows-i586.jar;core\library\gluegen-rt.jar;core\library\jogl-all-natives-linux-aarch64.jar;core\library\jogl-all-natives-linux-amd64.jar;core\library\jogl-all-natives-linux-armv6hf.jar;core\library\jogl-all-natives-linux-i586.jar;core\library\jogl-all-natives-macosx-universal.jar;core\library\jogl-all-natives-windows-amd64.jar;core\library\jogl-all-natives-windows-i586.jar;core\library\jogl-all.jar;modes\java\mode\antlr.jar;modes\java\mode\classpath-explorer-1.0.jar;modes\java\mode\com.ibm.icu.jar;modes\java\mode\JavaMode.jar;modes\java\mode\jdi.jar;modes\java\mode\jdimodel.jar;modes\java\mode\jdtCompilerAdapter.jar;modes\java\mode\jsoup-1.7.1.jar;modes\java\mode\org.eclipse.core.contenttype.jar;modes\java\mode\org.eclipse.core.jobs.jar;modes\java\mode\org.eclipse.core.resources.jar;modes\java\mode\org.eclipse.core.runtime.jar;modes\java\mode\org.eclipse.equinox.common.jar;modes\java\mode\org.eclipse.equinox.preferences.jar;modes\java\mode\org.eclipse.jdt.core.jar;modes\java\mode\org.eclipse.osgi.jar;modes\java\mode\org.eclipse.text.jar;modes\java\mode\org.netbeans.swing.outline.jar" processing.mode.java.Commander  
Args length:    1698/32768 chars
Exit code:  0

Answers

  • Just to clarify, you are trying to run a sketch using the command line? If you open a command prompt session and then browse to your Processing folder containing both executable files, you get the following info if you type processing-java:

    
    C:\Users\C\Documents\P3\current\processing>processing-java
    
    Command line edition for Processing 0263 (Java Mode)
    
    --help               Show this help text. Congratulations.
    
    --sketch=      Specify the sketch folder (required)
    --output=      Specify the output folder (optional and
                         cannot be the same as the sketch folder.)
    
    --force              The sketch will not build if the output
                         folder already exists, because the contents
                         will be replaced. This option erases the
                         folder first. Use with extreme caution!
    
    --build              Preprocess and compile a sketch into .class files.
    --run                Preprocess, compile, and run a sketch.
    --present            Preprocess, compile, and run a sketch in presentation mode.
    
    --export             Export an application.
    --no-java            Do not embed Java. Use at your own risk!
    --platform           Specify the platform (export to application only).
                         Should be one of 'windows', 'macosx', or 'linux'.
    
    The --build, --run, --present, or --export must be the final parameter
    passed to Processing. Arguments passed following one of those four will
    be passed through to the sketch itself, and therefore available to the
    sketch via the 'args' field. To pass options understood by PApplet.main(),
    write a custom main() method so that the preprocessor does not add one.
    https://github.com/processing/processing/wiki/Command-Line
    
    
    

    As you see, it explains how to use the processing-java executable. More info: https://github.com/processing/processing/wiki/Command-Line

    Kf

Sign In or Register to comment.