Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:30 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 11
Registered: December 2010
Location: Torrance, CA
Junior Member
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 09:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31539
Registered: July 2009
Senior Member
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");

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Developing Processing Sketches in Eclipse [message #1818504 is a reply to message #1818485] Tue, 17 December 2019 19:10 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 11
Registered: December 2010
Location: Torrance, CA
Junior Member
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 19:11]

Report message to a moderator

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


Current Time: Tue Oct 20 18:18:11 GMT 2020

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

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

Back to the top