Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Developing Processing Sketches in Eclipse(Errors when attempting to developing Processing Sketches in Eclipse)
Developing Processing Sketches in Eclipse [message #1818478] Tue, 17 December 2019 02:30 Go to next message
Eclipse UserFriend
I am attempting to develop Processing Sketches in Eclipse by following these instructions:
https://riptutorial.com/processing/example/31227/using-processing-with-eclipse

When I run the example provided I get these errors :
java.lang.RuntimeException: java.lang.ClassNotFoundException: UsingProcessing
	at processing.core.PApplet.runSketch(PApplet.java:10845)
	at processing.core.PApplet.main(PApplet.java:10650)
	at processing.core.PApplet.main(PApplet.java:10632)
	at processing_tests.UsingProcessing.main(UsingProcessing.java:25)
Caused by: java.lang.ClassNotFoundException: UsingProcessing
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at processing.core.PApplet.runSketch(PApplet.java:10838)
	... 3 more


I do not know what to do about them. I get the same when I try both the JREs that were installed by these files:
jdk-11.0.5_windows-x64_bin.exe
jdk-13.0.1_windows-x64_bin.exe

The source files are attached. Please suggest a solution.
Re: Developing Processing Sketches in Eclipse [message #1818485 is a reply to message #1818478] Tue, 17 December 2019 04:17 Go to previous messageGo to next message
Eclipse UserFriend
I don't know what PApplet.main does with its argument, but the example on the page you link to shows no package declaration, but you have package declaration "package processing_tests;" so perhaps you should be using PApplet.main("processing_tests.UsingProcessing");
Re: Developing Processing Sketches in Eclipse [message #1818504 is a reply to message #1818485] Tue, 17 December 2019 14:10 Go to previous message
Eclipse UserFriend
Changing the argument to "processing_tests.UsingProcessing" worked. The sketch runs now. Thanks :)

I also tried to run the example without the line:
package processing_tests;

to find out if that would eliminated the need for the "processing_tests." prefix. I got an error. So now I need to know how the author of that example was able to not have one.

[Updated on: Tue, 17 December 2019 14:11] by Moderator

Previous Topic:how to configure access rules for ecj when run by maven?
Next Topic:ClassNotFoundException
Goto Forum:
  


Current Time: Tue Jul 08 07:09:23 EDT 2025

Powered by FUDForum. Page generated in 0.26608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top