[rules-users] Problems using functions in .drl file

Keith Bennett forthwind at gmail.com
Mon Jan 7 14:57:24 EST 2008


I am having problems using functions in my .drl file.  When I add a
function, I get the following two errors:

ImportError: PackageName.Function.function
Syntax error, static imports are only available if source level is 5.0

Has anyone else seen this?  I am using Eclipse 3.2.2, Eclipse Drools IDE
4.0.3, and JDK 1.4.  It appears as though I can't use the IDE unless I'm at
JDK 5.0???

One interesting thing is that if I modify my 'Compiler compliance level',
'Generated .class files compatibility', and 'Source compatibility' settings
to 1.4, the .drl compile errors go away.  But as soon as I close Eclipse and
reopen it, the errors show up again.  I appreciate any help you can
provide!  Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080107/170dd148/attachment.html 


More information about the rules-users mailing list