I found the problem. In my CLASSPATH environment variable, I had a path that contains spaces (since Windoze allows this). I believe this was screwing up how the parameters (the classpath) was being handed to javaw. This may explain this being an erratic problem on certain Windows environments.
The fix was to remove the CLASSPATH from being appended to the OPTIONS variable in modeler.bat.
Just remove or remark out the line:
set OPTIONS=%OPTIONS%;%CLASSPATH%
in the modeler.bat file.
-----Original Message-----
From: Holger Hoffstätte [mailto:holge..izards.de]
Sent: Friday, February 14, 2003 3:59 PM
To: cayenne-use..bjectstyle.org
Subject: Re: Can not run the modeler
Jason Bedell wrote:
> I am new to cayenne and when trying to launch the modeler get a error
> saying "Could not find the main class. Program will exit!"
I just downloaded the a6 archive from SourceForge, unpacked it, double-clicked on the modeler.bat and it started right away, no problems. That means that the Editor class must be there. :)
One reason the .tar.gz might not work for you is probably WinZip (if you used it). Make sure 'TAR file smart CR/LF handling' is OFF. This braindead option is on by default and the most likely cause if your tarball seems messed up.
Let us know how it goes!
Holger
This archive was generated by hypermail 2.0.0 : Fri Feb 14 2003 - 17:29:49 EST