I'm trying to get started with a simple tool for processing. I found the example below in the wiki and put it in eclipse. I exported it as a jar and put it in processing\tools\mytool\tool\mytool.jar. Now processing stalls on startup and eventually reports a launch4j error. The code seems straightforward enough but I don't know enough about creating jars or runnable jars. Am I doing something obviously wrong?
- package toolexample;
- import processing.app.Editor;
- import processing.app.tools.Tool;
- public class toolexample implements Tool {
- Editor editor;
- public void init(Editor editor){
- this.editor=editor;
- }
- public void run(){
- editor.setText("deleted");
- }
- public String getMenuTitle(){
- return "destructo!";
- }
- }
1