WeightedRoulleteSelector not Working

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

WeightedRoulleteSelector not Working


i am developing a variation of load distribution problem and i am using JGAP
the problem i am facing right now is that when i try to create an object of WeightedRoulleteSelector class, i get the following exception :

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: gnu/trove/THashMap
        at org.jgap.impl.WeightedRouletteSelector.<init>(WeightedRouletteSelector.java:48)
        at GUI.GA_Optimization.jButton1ActionPerformed(GA_Optimization.java:214)
Caused by: java.lang.ClassNotFoundException: gnu.trove.THashMap
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 29 more

i added the trove.jar file to to the project still i am facing the same issue.

i hope you can help me out