You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sketch won’t run when main .pde file name differs from sketch folder name #46
This happens regardless of the main=MAINFILENAME.pde line in sketch.properties.
Console output
[16:05:24] Command line edition for Processing 4.4.10 (Java Mode)
--help Show this help text. Congratulations.
--sketch=<name> Specify the sketch folder (required)
--output=<name> 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.
--variant Specify the platform and architecture (Export only).
--no-java Do not embed Java.
Starting with 4.0, the --platform option has been removed
because of the variety of platforms and architectures now available.
Use the --variant option instead, for instance:
variant platform
[16:05:24] ------------- ---------------------------
[16:05:24] macos-x86_64
[16:05:24] macOS (Intel 64-bit)
macOS (Apple Silicon)
Windows (Intel 64-bit)
[16:05:24] macos-aarch64windows-amd64linux-amd64linux-armlinux-aarch64
[16:05:24] Linux (Intel 64-bit)
Linux (Raspberry Pi 32-bit)
Linux (Raspberry Pi 64-bit)
[16:05:24]
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
Not a valid sketch folder. [THE PATH] does not exist.
[16:05:24] Process exited with code 1
Hi @aidanwyber and thanks for raising this. I believe this issue was fixed in processing/processing4#1219 and should be solved in the next release of Processing.
Activity
SableRaf commentedon Feb 19, 2026
Hi @aidanwyber and thanks for raising this. I believe this issue was fixed in processing/processing4#1219 and should be solved in the next release of Processing.
cc @catilac
aidanwyber commentedon Feb 21, 2026
Thank you!