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(
 at processing.core.PApplet.main(
Caused by: java.lang.ClassNotFoundException: sketch_220404a
 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
 at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
 at java.base/java.lang.ClassLoader.loadClass(
 at processing.core.PApplet.runSketch(
 ... 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