At 12:05 AM 7/29/98 -0700, you wrote:
>Hi Folks,
>
>Well, I've teased you long enough. Jess 4.1b4 is available at the
>usual place:
Found a possible error...
I replaced the libs with my current ones. (I used the tar file version of 4.1b4,
since the zip version contains the 4.1b3 version) and try to run the same code I
use to have... it gave the error:
|java.lang.IncompatibleClassChangeError: Unimplemented interface method
| at jess.Rete.addUserpackage(Rete.java:917)
| at com.novazen.rules.test.Test.initRulesEngine(Compiled Code)
| at com.novazen.rules.test.Test.addNames(Compiled Code)
| at com.novazen.rules.test.Test.runTest(Test.java:116)
| at com.novazen.rules.test.Test.main(Compiled Code)
I tried to do a javac *.java in the jess directory, and it gave...sh.exe-2.01$ javac
*.java
|GlobalContext.java:36: Incompatible type for java.lang.String. Can't convert jav
|a.lang.String to int.
| if (b.m_name == name)
| ^
|GlobalContext.java:54: Incompatible type for constructor. Can't convert int to j
|ava.lang.String.
| b = new Binding(name, value);
| ^
but when I run the main function, "java jess.Main" it works.
Ideas? (In my initRulesEngine, I was adding the packages like so...
| String [] packages = { "jess.StringFunctions",
| "jess.PredFunctions",
| "jess.MultiFunctions",
| "jess.MiscFunctions",
| "jess.MathFunctions",
| "jess.BagFunctions",
| "jess.reflect.ReflectFunctions",
| "jess.view.ViewFunctions" };
|
| for (int i=0; i< packages.length; i++)
| {
| try
| {
| RulesEngine.addUserpackage((Userpackage)
| Class.forName(packages[i]).newInstance());
| }
| catch (Exception t) { /* Optional package not present */
| t.printStackTrace();
| }
| }
And I'm using java 1.1.6 from Sun on nt 4.0. It compiled fine with the jess classes
from the tar file.
Thanks.
Ned Wolpert | "It is not man who pursues truth,
[EMAIL PROTECTED] | but truth man." -Shestov
____________________/ http://www.novazen.com/
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------