WeightedRoulleteSelector not Working

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

WeightedRoulleteSelector not Working

priyanshuJha

Hello

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

thank you!!

Priyanshu Jha
Master of Technology (Software Engineering)
Institute of System Science


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jgap-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgap-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WeightedRoulleteSelector not Working

Klaus Meffert-5
The library named trove-2.0.2.jar is shipped with JGAP (found in the lib directory) and contains this class!
 
Please check that your classpath is set correctly and that all paths are valid. It may also be that the wrong version of the library is used.
 
Best
 


From: priyanshu jha [mailto:[hidden email]]
Sent: Tuesday, May 22, 2012 5:23 PM
To: [hidden email]
Subject: [jgap-users] WeightedRoulleteSelector not Working


Hello

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

thank you!!

Priyanshu Jha
Master of Technology (Software Engineering)
Institute of System Science


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jgap-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgap-users
Loading...