I am new to Drools. I wanted to put the rules in the project so I am learning this.
So I have taken code sample from Maven Repository bur I am getting following error.
To run the Example I Have used eclipse as IDE and the drl file in XML format.
java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;
at org.apache.commons.jci.compilers.EclipseJavaCompiler$2.acceptResult(EclipseJavaCompiler.java:237)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:454)
at org.apache.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:268)
at org.drools.compiler.PackageBuilder.compileAll(Unknown Source)
at org.drools.compiler.PackageBuilder.addPackage(Unknown Source)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)
at org.drools.examples.HonestPoliticianExample.main(HonestPoliticianExample.java:20)
java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;
at org.apache.commons.jci.compilers.EclipseJavaCompiler$2.acceptResult(EclipseJavaCompiler.java:237)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:454)
at org.apache.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:268)
at org.drools.compiler.PackageBuilder.compileAll(Unknown Source)
at org.drools.compiler.PackageBuilder.addPackage(Unknown Source)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)
at org.drools.examples.HonestPoliticianExample.main(HonestPoliticianExample.java:20)
Exception in thread "main"
Please help me fix this.
Thanks in advance
Thanks & Regards
Shilpa