I'm trying to build a simple Drools project in Eclipse, but when I try to test it, a runtime exception is thrown with the message, "The Eclipse JDT Core jar is not in the classpath."
Any ideas where I might find this jar?
Thanks!
Try this:
http://affy.blogspot.com/2008/07/jboss-rules-classpath-error-eclipse-jdt.html
If it's not that, please provide some more info on your problem...
Related
I'm using eclipse RCP (helios), and I need to add statistics functions.
In the editor, I have no problem, no error.
But when I run or debug the project, I get:
java.lang.ClassNotFoundException:
org.apache.commons.math3.stat.descriptive.SummaryStatistics error.
first question, the library says si java 1.5+ compatible, I'm running on 1.6.
is this ok?
besides build path... is there any other way to set classpath ?
Best Regards
I recently followed Sebastian Zarnekow's short guide on how to deploy an Xtext DSL into a standalone project (found here: http://zarnekow.blogspot.co.uk/2010/06/how-to-deploy-xtext-standalone.html)
However I receive the following error when attempting to run the project...
"The string resource '_UI_DiagnosticRoot_diagnostic' could not be located"
Could this be something to do with how the JAR is exported, I chose the "Extract required libraries into generated JAR" option, if I try to use the second option where the libraries are packaged into the JAR I receive a different error telling me that a main method could not be found.
Has anyone come across this issue before? I tried updating EMF and Xtext but it didn't seem to have any affect.
Any help is appreciated.
this should be a "warning" only - maybe logged as error but not prevent the program from running.
the problem is there a multiple plugin.properties in the root of the jars that may override each other. seems one from the org.eclipse.emf.ecore is going lost.
so you may create a plugin.properties that contains this (and maybe other keys) as well.
so I'm having trouble compiling my application when I'm not using my maven implementation. It will compile without any troubles with the maven-gwt-plugin.
The error I receive says that the generator can't fond the class information it is requesting:
Rebinding nz.co.doltech.wayhome.client.core.ReflectionBundle
Invoking generator fr.lteconsulting.hexa.classinfo.gwt.rebind.ClazzBundleGenerator
[ERROR] ERROR when generating null for nz.co.doltech.wayhome.client.core.ReflectionBundle
com.google.gwt.core.ext.typeinfo.NotFoundException: nz.co.doltech.wayhome.client.widgets.SettingForm
at com.google.gwt.dev.javac.typemodel.TypeOracle.getType(TypeOracle.java:623)
at com.google.gwt.dev.javac.typemodel.TypeOracle.getType(TypeOracle.java:68)
at fr.lteconsulting.hexa.classinfo.gwt.rebind.ClazzBundleGenerator.generate(ClazzBundleGenerator.java:71)
at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
Obviously that class exists and works in the maven implementation. I can't figure out why its not working when I just do a standard build using the eclipse 'Java Application' run configuration. Here is the setup of my run configuration:
Anyone have any ideas what is going on here?
Try right clicking on your project and go to Google -> GWT Compile.
Edit: the above option may not be available to you if you do not have the GWT plugin for Eclipse installed. For more information:
https://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven
This is kind of a noobish question, but I've been having some trouble with Eclipse. I am using htmlunit.jar to build a small test application. I have the .jar added to my build path under libraries, and there are no errors in eclipse when writing code.
However, whenever I try to debug the program, it throws a NoClassDefFoundError, even though I have the library referenced. What am I doing wrong?
Thanks a lot in advance!
htmlunit has a lot of dependencies to other librarys that you have to add also to your libs.
My suggestion: Try to use maven or some similar buildsystem to manage dependencies
I was trying to create a Junit Testing framework within an existing RFT framework. The JUnit set up works fine to the point where we don't have to instantiate any framework classes.Whenever we are trying to access framework classes it throws the below exception. I did look for similar issues online but couldn't get a solution.Please suggest a solution if any body has faced a similar issue. RFT version is 8.1,JUnit version is 4
java.lang.NoClassDefFoundError: com.ibm.rational.test.lt.arm.IArmable
at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:521)
at java.net.URLClassLoader.access$300(URLClassLoader.java:66)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:985)
I figured it out:
You have to add the jar "com.ibm.rational.test.lt.rftarm_8.2.1.v20120105_1832.jar" to your Java Build Path. Mine was located in C:/Program Files/IBM/IMShared/plugins/. It came with RFT, but appears to not have been included in the Build Path by default.
This looks like a classpath error. If you are invoking JUnit from ANT, Maven, or some similar build tool then make sure you have the appropriate JAR files in the classpath. Remember, some JARS in turn have their own dependencies. Unless all those dependencies are in the classpath you will get the java.lang.NoClassDefFoundError.
If you are trying to run from the GUI client, it might be a little more difficult. Essentially, you will have to add all the dependencies to the jvm's -classpath option.