Looks like a classpath problem.


java -cp C:\ecj\ ec.Evolve -file tutorial1.params


set the CLASSPATH environmental variable to include C:\ecj\


create a JAR file that contains ECJ, and place the jar file in your 

For more info, see:


On 16/11/10 10:28, Carlo Rossi wrote:
> Hello,
>   sorry to bother you with this apparently not-ECJ problem but at this point Java installation seems fine to me and I still can't launch the tutorial1 (and it worked months ago!) with this command:
>   java ec.Evolve -file tutorial1.params
> The error is this:
> C:\ecj\ec\app\tutorial1>java ec.Evolve -file tutorial1.params
> Exception in thread "main" java.lang.NoClassDefFoundError: ec/Evolve
> Caused by: java.lang.ClassNotFoundException: ec.Evolve
>          at$ Source)
>          at Method)
>          at Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
>          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>          at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class: ec.Evolve.  Program will exit.
>   I tried even to launch it in the directory where Evolve.class is located. same error. Maybe somebody has very clear in mind where's the problem.
>   thanks.

Dr David R. White
Research Associate
Dept. of Computer Science
University of York
Deramore Lane, York, YO10 5GH
+44 (0)1904 325635