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 › exporting as jar - standalone
Page Index Toggle Pages: 1
exporting as jar - standalone (Read 1550 times)
exporting as jar - standalone
May 26th, 2010, 11:03pm
 
I'm working on a project on eclipse.
It works fine when I run it from eclipse.

I read on the internet that applets cant be exported as standalones.
So i added this code to my project

Code:

public static void main(String [] args){
      PApplet.main(new String[] { "MyProcessingSketch" });

}



After this my applet could be run as an application too.

i followed steps from
http://www.vogella.de/articles/Eclipse/article.html#firstjava_export and exported my project.

but it didnt run afterwards.
when i double click that it gives an error saying
"coudn't find the main class"

i extracted the .jar file found out that main class is specified in the manifest file.

any suggestions

Is there any method to export the project on eclipse to processing IDE so that i cn generate an executable from there

Page Index Toggle Pages: 1