<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes it works with jdk1.4. But you are using the Drools 2.x language
with the Drools 4.0 engine.<br>
<br>
Mark<br>
PN Subramanian wrote:
<blockquote
cite="mid:3e54902c0708110301u576b21aeo2ae085dd7b2d5802@mail.gmail.com"
type="cite">Hi,<br>
<br>
Does drools work with JDK 1.4 ?<br>
<br>
The following is what i have in my xml rules file<br>
<br>
<?xml version="1.0"?><br>
<rule-set name="Tests assignment rules" xmlns="<a
moz-do-not-send="true" href="http://drools.org/rules">http://drools.org/rules</a>"<br>
xmlns:java="<a moz-do-not-send="true"
href="http://drools.org/semantics/java">http://drools.org/semantics/java</a>"<br>
xmlns:xsi="<a moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"><br>
<br>
<java:import>java.lang.String</java:import> <br>
<java:import>java.util.List</java:import><br>
<br>
<rule name="rule1" salience="100"><br>
<parameter identifier="message"><br>
<java:class><br>
String<br>
</java:class><br>
</parameter> <br>
<java:condition>message.equals("testMessage")</java:condition>
<br>
<java:consequence><br>
System.out.println("Received message "+testMessage);<br>
</java:consequence><br>
</rule><br>
<br>
</rule-set><br>
<br>
<br>
Have included the following jar files in the classpath.<br>
1) drools-compiler-4.0.0.jar<br>
2) drools-core-4.0.0.jar<br>
3) antlr-runtime-3.0.jar<br>
4) core-3.2.3.v_686_R32x.jar<br>
5) mvel14-1.2rc1.jar<br>
<br>
Have placed the rules in an xml file. The xml file is placed in the<br>
folder/package "rules/test". When the application tries to call the<br>
"loadFromReader" method, after getting the InputStreamReader, i get the<br>
following exception<br>
<br>
[8/10/07 13:16:24:173 GMT] 00000045 SystemErr R<br>
org.drools.compiler.PackageBuilder$MissingPackageNameException: Missing<br>
package name for rule package.<br>
<br>
Would appreciate if someone could guide me on this.<br>
<br>
<br>
-- <br>
P.N.Subramanian <br clear="all">
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>