[rules-users] new user - running examples

Marcin Krol mrkafk at gmail.com
Tue Aug 19 14:52:56 EDT 2008


Hello everyone,

I am totally new to Drools (I have basic exposure to Java, nothing 
more), hope that someone helps me with the following problem:

I have successfully imported Eclipse plugin and ran the DroolTest.java 
example in Eclipse Europa (it worked OK). Then I imported Eclipse 
example (4.0.7) project into Eclipse workspace.


But most of .drl files show error markers with messages like:

     Rule 01:Unable to resolve ObjectType 'Cashflow'  (example4.drl)

Now when I try to run Example4.java, I get the error:

     The project: drools-compiler which is referenced by the classpath, 
does not exist.


In Eclipse: menu Project | Properties | Java Build Path | Projects tab 
shows drools-core and drools-compiler with yellow warning icons. Button 
Edit is grayed out, there's nothing I can do to fix those items.

I have added drools-core-4.0.7.jar and drools-compiler-4.0.7.jar in Add 
External JARs on Libraries tab, but this does nothing to resolve the 
problem.

How do I fix those problems so I can run examples?

Regards,
Marcin





More information about the rules-users mailing list