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 & HelpSyntax Questions › "Could not find the main class. Program will
Page Index Toggle Pages: 1
"Could not find the main class. Program will (Read 696 times)
"Could not find the main class. Program will
Dec 11th, 2007, 8:23pm
 
hi all

i'm getting the error:

"Could not find the main class. Program will exit"

building in windows XP, when trying to start an application that was exported from processing 135 -- my application has a number of 3rd party java libraries and googling has led me to believe that i might have a problem because i'm mixing up versions of java in one of these libraries. there are some solutions suggested but they seem quite java-specific rather than processing-specific and i'm not sure what's the correct way around it now that i've built it all in processing (and my java is not yet good enough to rebuild it outside).

i think the problematic library is this one:
http://www.vividsolutions.com/JTS/javadoc/index.html

thing is my code runs just fine inside processing, how can it to work as an application (it will only be running on this machine so it doesn't need to be more widely compatible).

thanks for any pointers.
Re: "Could not find the main class. Program w
Reply #1 - Mar 28th, 2008, 7:26pm
 
does anyone have any suggestions about this? i still haven't been able to fix it 3 months later...

i think the problem lies in the fact that my machine uses java version 1.6.0_05 (it needs 1.6 for some other applications that are running at the same time)

but i built my processing application in the version of processing that includes java (i.e. the normal windows version of processing), which i guess is 1.4.

so when i "export to application" i'm guessing it's trying to run the application in the 1.6 java machine, whereas i guess i want it to run in the 1.4 version.

any thoughts on how i might ensure this?
Page Index Toggle Pages: 1