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

Michael Neale michael.neale at gmail.com
Tue Jan 8 20:39:02 EST 2008


You can use the IDE with java 5 but set the compliance to 1.4 just  
like you thought I am pretty sure

Sent from my iPhone

On 09/01/2008, at 1:12, "Keith Bennett" <forthwind at gmail.com> wrote:

> Thanks for the update.  I still have a couple questions:
>
> Which back version of the Drools IDE can I use with Java 1.4 set as  
> the compiler?
>
> Or possibly even better, is it safe to set the 'Compiler compliance  
> level' setting to Java 5 while setting the 'Generated .class files  
> compatibility' and 'Source compatibility' settings to 1.4 ?  That's  
> something I've never done, but hopefully it would allow me to use  
> the latest version of the IDE.
>
> My client has WebSphere 5.x deployed and must stay on Java 1.4 for  
> now, so I have to develop my code to be 1.4 compliant.  However, I  
> want to utilize the Drools engine and IDE to develop a rules  
> component for them.  I hope I can get this environment working.
>
>
> On 1/8/08, Michael Neale <michael.neale at gmail.com> wrote:
> I think you need java 5 for the ide even though the engine can run
> with 1.4
>
> Sent from my iPhone
>
> On 08/01/2008, at 5:57, "Keith Bennett" <forthwind at gmail.com> wrote:
>
> > 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.
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080109/3ef0ed38/attachment.html 


More information about the rules-users mailing list