Menu

#5 Can't find main in Engine class even though it exists

open
nobody
5
2005-09-16
2005-09-16
kristi
No

Symtoms:

In Eclipse, when trying to run the EvolveNet simulation,
running the simulation running the Engine class gives an
error. Eclipse complains that it can't find the main
function even though it is clearly in the Engine class.

Also, the "Open Declaration" function stopped working.
Eclipse wouldn't go to the correct class when this is
used.

Fix:

The classpath (aka build path) of the Evolve project
needs to be fixed. Since the path to the JRE is set
incorrectly, Eclipse wasn't correctly recognizing classes.

In the Java Perspective:
right click EvolveNet
go to "Build Path" => "Configure Build Path"
click "JRE System Library..."
click remove
click "Add Library..."
select "JRE System Library..."
select "Workspace Default JRE (jre1.5.0_01)"
click "Finished"

commit the new ".classpath" file

TODO:
possibly don't let the ".classpath" file be controlled by
CVS

Discussion


Log in to post a comment.