Using the new registerMethod in Eclipse
in
Library and Tool Development
•
11 months ago
When I try to use the registerMethod in my library I get an exception error but not in the pde.
The listings below demonstrate the problem.
In Eclipse I got the following exception:
Exception in thread "Animation Thread" java.lang.NoSuchMethodError: tests.PreTest.registerMethod(Ljava/lang/String;Ljava/lang/Object;)V
at tests.PreTest.setup(PreTest.java:9)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
I have tried using both 32bit and 64bit Procesing libraries.
Has you experienced the same problem? If so do you have a solution? Any ideas?
Thanks in advance!
Processing
Eclipse
The listings below demonstrate the problem.
In Eclipse I got the following exception:
Exception in thread "Animation Thread" java.lang.NoSuchMethodError: tests.PreTest.registerMethod(Ljava/lang/String;Ljava/lang/Object;)V
at tests.PreTest.setup(PreTest.java:9)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
I have tried using both 32bit and 64bit Procesing libraries.
Has you experienced the same problem? If so do you have a solution? Any ideas?
Thanks in advance!
Processing
- void setup(){
- size(200,200);
- registerMethod("pre", this);
- }
- void pre(){
- println(millis() % 1000);
- }
- void draw(){
- }
Eclipse
- package tests;
- import processing.core.PApplet;
- public class PreTest extends PApplet {
- public void setup(){
- size(200,200);
- registerMethod("pre", this);
- }
- public void pre(){
- println(millis() % 1000);
- }
- public void draw(){
- }
- }
1