MathProblem exception

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MathProblem exception

manolakis
Hi all!!!

Is anyone familiar with the following exception? I try to run the MathProblem in examples/gp , and I get this exception at the end.

Thanks

$ java examples.gp.MathProblem Formula to discover: X^4 + X^3 + X^2 - X
0) -0.46036768   0.61965436
1) -0.13697863   0.15352368
2) 2.037745   27.818668
3) 0.58928204   0.08318633
4) -2.326088   24.426558
5) 0.46706295   -0.09943795
6) 3.068718   123.92698
7) 1.039227   2.3295078
8) 4.074802   355.88043
9) -0.85760546   1.5032761
10) 4.225363   407.82092
11) 3.9667864   321.79016
12) -0.6027436   0.8790536
13) -0.8277397   1.415199
14) -1.4920192   5.3523407
15) 4.6440806   582.24097
16) 4.861375   692.1773
17) -1.0953321   2.4203632
18) 1.6539502   13.089308
19) -1.9684854   13.230785
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
        at org.jgap.gp.impl.GPGenotype.<clinit>(GPGenotype.java:33)
        at examples.gp.MathProblem.create(MathProblem.java:88)
        at examples.gp.MathProblem.main(MathProblem.java:112)
Reply | Threaded
Open this post in threaded view
|

Re: MathProblem exception

Klaus Meffert-5
Hi manolakis,

this exceptions tells that the log4j jar file (log4j library) is not given
with the classpath.
If you have a look at the file "start_gp_mathproblem.bat" delivered with
JGAP, you'll see the library included.

Best

Klaus

> -----Original Message-----
> Subject: [jgap-users] MathProblem exception
>
>
> Hi all!!!
>
> Is anyone familiar with the following exception? I try to run
> the MathProblem in examples/gp , and I get this exception at the end.
>
> Thanks
>
> $ java examples.gp.MathProblem Formula to discover: X^4 + X^3
> + X^2 - X
> 0) -0.46036768   0.61965436
> 1) -0.13697863   0.15352368
> 2) 2.037745   27.818668
> 3) 0.58928204   0.08318633
> 4) -2.326088   24.426558
> 5) 0.46706295   -0.09943795
> 6) 3.068718   123.92698
> 7) 1.039227   2.3295078
> 8) 4.074802   355.88043
> 9) -0.85760546   1.5032761
> 10) 4.225363   407.82092
> 11) 3.9667864   321.79016
> 12) -0.6027436   0.8790536
> 13) -0.8277397   1.415199
> 14) -1.4920192   5.3523407
> 15) 4.6440806   582.24097
> 16) 4.861375   692.1773
> 17) -1.0953321   2.4203632
> 18) 1.6539502   13.089308
> 19) -1.9684854   13.230785
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/log4j/Logger
>         at org.jgap.gp.impl.GPGenotype.<clinit>(GPGenotype.java:33)
>         at examples.gp.MathProblem.create(MathProblem.java:88)
>         at examples.gp.MathProblem.main(MathProblem.java:112)
>
> --


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jgap-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgap-users