We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › public type processing must be defined in its own
Page Index Toggle Pages: 1
public type processing must be defined in its own (Read 1433 times)
public type processing must be defined in its own
Dec 29th, 2009, 8:33pm
 
Error message from within emacs-processing:

Code:
test.pde:-1:0:-1:0: The public type processing must be defined in its own file


I'm trying to understand what happens when a sketch is compiled, so I can do test sketches. So I deleted my entire processing directory, decompressed the processing 1.0.9 tarball, descended into it's fist level directory and created a test sketch:

Code:
size(400, 400);
background(192, 64, 0);
stroke(255);
line(150, 25, 270, 350);


The error in the processing-mode buffer gives me:

Code:

-*- mode: compilation; default-directory: "~/play/processing-1.0.9/" -*-
Compilation started at Wed Dec 30 17:24:52

/home/mantis/opt/processing-1.0.9/java/bin/java -classpath "/home/mantis/opt/processing-1.0.9/java/lib/rt\
.jar:/home/mantis/opt/processing-1.0.9/java/lib/tools.jar:/home/mantis/opt/processing-1.0.9/lib/antlr.jar\
:/home/mantis/opt/processing-1.0.9/lib/core.jar:/home/mantis/opt/processing-1.0.9/lib/ecj.jar:/home/manti\
s/opt/processing-1.0.9/lib/jna.jar:/home/mantis/opt/processing-1.0.9/lib/pde.jar" processing.app.Commande\
r --sketch="/home/mantis/play/processing-1.0.9/" --output="/home/mantis/play/processing-1.0.9/output" --r\
un
test.pde:-1:0:-1:0: The public type processing must be defined in its own file

Compilation finished at Wed Dec 30 17:24:54


Whats happening here?
How can I get past this error and start doing sketches?

Is there any documentation on how the processing application 'Commander' does it's thing ?

Re: public type processing must be defined in its own
Reply #1 - Dec 30th, 2009, 10:12am
 
Well, you ignored my latest answer in processing, emacs, java: NoClassDefFoundError" so I don't know if my advices make sense or not...
Page Index Toggle Pages: 1