As a workaround, I have to manually add the drools jar files to the classpath instead of
using the classpath generated by the wizard for the drools project. Does this mean that
the classpath generated by the new project template is not sufficient?
thanks
Xiandong
----- Original Message ----
From: Xiandong Su <xiandongsu(a)yahoo.com>
To: Drools Users <user(a)drools.codehaus.org>
Sent: Monday, December 1, 2008 11:18:18 PM
Subject: [drools-user] The Eclipse JDT Core jar is not in the classpath error
I am using drools 4.0.7 plug in with eclipse 3.4.1. I created a drools project with the
example generated by the wizard. However I am getting this exception when trying to run
the example. I see there are discussion around this topic but I still do not have clear
understand what the final solution should be. Does anyone have final solution?
thanks
Xiandong
org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:160)
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:146)
at
org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:121)
at
org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:98)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:124)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:86)
at com.sample.DroolsTest.readRule(DroolsTest.java:50)
at com.sample.DroolsTest.main(DroolsTest.java:21)
Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
at
org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:91)
at
org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:52)
at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:156)
... 7 more
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email