1 Reply Latest reply on Sep 7, 2009 6:05 PM by Max Rydahl Andersen

    Runing default Jboss Rules app in Eclipse3.5 + Drools3.1

    shashank singh Newbie

      Hi

      Here I am trying to run a default Drools Project in eclipse3.5 JDK1.5 Windowx XP

      I created a Drool Runtime.(c:/drools) But no jar was automatically copied to that directory. I manually copied these jars to that. Here is the list of jar files

      drools-all-jdk5-2.1.jar
      drools-ant-5.0.1.jar
      drools-api-5.0.1.jar
      drools-bam-5.0.1.jar
      drools-clips-5.0.1.jar
      drools-compiler-5.0.1.jar
      drools-core-5.0.1.jar
      drools-decisiontables-5.0.1.jar
      drools-jsr94-5.0.1.jar
      drools-mc-5.0.1.jar
      drools-messenger-jms-5.0.1.jar
      drools-persistence-jpa-5.0.1.jar
      drools-process-task-5.0.1.jar
      drools-templates-5.0.1.jar
      drools-transformer-jaxb-5.0.1.jar
      drools-transformer-jxls-5.0.1.jar
      drools-verifier-5.0.1.jar
      drools-workitems-5.0.1.jar
      Now I am getting this error in Eclipse console
      org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
       at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:274)
       at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:259)
       at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:176)
       at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:153)
       at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:242)
       at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:142)
       at org.drools.builder.impl.KnowledgeBuilderProviderImpl.newKnowledgeBuilder(KnowledgeBuilderProviderImpl.java:29)
       at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:29)
       at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:39)
       at com.sample.DroolsTest.main(DroolsTest.java:23)
      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:94)
       at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:55)
       at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:270)
       ... 9 more
      
      Can someone help me out of it. TIA