Print

Print


Hello everyone,

I'm sorry to ask you this little question, but I don't know why the ParamterDatabase.java does not find my function classes. 
I've already set file attributes to 777 with chmod and the path is also absolute. But I still get this error message:

ec.util.ParamClassLoadException: 
Class not found: /home/jbojan/workspace/ECJ20/src/rulevolution/Annotation
PARAMETER: gp.fs.0.func.0
EXCEPTION: 

java.lang.ClassNotFoundException: /home/jbojan/workspace/ECJ20/src/rulevolution/Annotation
	at ec.util.ParameterDatabase.getInstanceForParameter(ParameterDatabase.java:451)
	at ec.gp.GPFunctionSet.setup(GPFunctionSet.java:233)
	at ec.gp.GPInitializer.setupFunctionSets(GPInitializer.java:262)
	at ec.gp.GPInitializer.setup(GPInitializer.java:96)
	at ec.EvolutionState.setup(EvolutionState.java:298)
	at ec.simple.SimpleEvolutionState.startFresh(SimpleEvolutionState.java:50)
	at ec.EvolutionState.run(EvolutionState.java:360)
	at ec.Evolve.main(Evolve.java:638)


My parameter file looks like this:

parent.0 = ../../lib/ecj20/ec/gp/koza/koza.params

gp.fs.size = 1
gp.fs.0 = ec.gp.GPFunctionSet
gp.fs.0.name = f0

gp.fs.0.size = 2
gp.fs.0.func.0 = /home/jbojan/workspace/ECJ20/src/rulevolution/Annotation
gp.fs.0.func.0.nc = nc0
gp.fs.0.func.1 = /home/jbojan/workspace/ECJ20/src/rulevolution/Faktum
gp.fs.0.func.1.nc = nc2

eval.problem = /home/jbojan/workspace/ECJ20/src/rulevolution/RulEvolution
eval.problem.data = /home/jbojan/workspace/ECJ20/src/rulevolution/AnnotationData

The files are separated from the ec-folder but I'm using the ECJ framework as a source folder so 
that Evolve can run as a main class. I'm using eclipse as my environment. 

So does anybody know where my mistake lies? 

Thank you all.

Bojan