Java.lang errors on running a sketch – new installs on Windows

I have a few students with fresh installs of Processing 4b7, 4b6, and even 3.5.4 that are getting the following error when trying to run a new blank sketch:

java.lang.RuntimeException: java.lang.ClassNotFoundException: sketch_220404a
 at processing.core.PApplet.runSketch(PApplet.java:10397)
 at processing.core.PApplet.main(PApplet.java:10187)
Caused by: java.lang.ClassNotFoundException: sketch_220404a
 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
 at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
 at processing.core.PApplet.runSketch(PApplet.java:10390)
 ... 1 more
RuntimeException: java.lang.ClassNotFoundException: sketch_220404a

I thought maybe they were trying to run from inside a .zip file, but no. One of them is on Windows 11, the other on Windows 10.

I can’t quite figure this out. Are they missing a separate Java install somewhere? Is it a permissions thing? Any leads would be appreciated.

Okay, seemed to have figured it out. The Processing app needed to be run as administrator. Setting that option fixed the issue.

1 Like