Print

Print


Hi

Looks like a classpath problem.

Try:

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

or

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

or

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

For more info, see:

http://download.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html

David

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 java.net.URLClassLoader$1.run(Unknown Source)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at java.net.URLClassLoader.findClass(Unknown 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
http://www.cs.york.ac.uk/~drw