I'm having trouble compiling a drools 4 project. I'm getting errors in the rules file saying
Only a type can be imported. <<MyClassName>> resolves to a package
The incremental compiler isn't working because of this. How do I fix the errors or get eclipse to ignore them?
This issue was mentioned for a migration from drools 3.06 to 4.0.7, so what version of eclipse and drools are you using?
This might be related to a classpath issue:
The solution was:
Ensure that the MyClassName or any other class(es) that you use from the rule are in a jar file and the jar file is in classpath.
Hmmm, I cleaned the project and that resolved the problem.