English 中文(简体)
使用 JGAP API 时定义错误
原标题:NoClassDefinitionFoundError while using JGAP API
  • 时间:2012-05-22 09:46:38
  •  标签:
  • java

混凝土: gnu/trove/THashMap

i am using JGAP API for solving Load Distribution problem using Genetic Algorithm. Problem i am facing right now is not really related to Jgap. i am trying to create an object of class WeightedRoulleteSelector and i am getting ths exception :

Exception in thread "AWT-EventQueue-0" 混凝土: gnu/trove/THashMap
at org.jgap.impl.WeightedRouletteSelector.<init>(WeightedRouletteSelector.java:48)
    ....
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)

您不知道如何克服这个问题。 需要我添加罐子文件吗?

帮帮忙吧

问题回答

您需要添加 < a href=> http:// findjar.com/jar/trove/trove/trove/1.0.2/trove-1.0.2. jar.html" rel=“ nofollow” > trove library 在您的运行时间类路径中添加 < findjar.com/jar/trove/trove/trove/1.0.2/trove/1.0.2/trove- 1. 2. jar.html" rel=“ nofollow” > trove library





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签