Hi,
You're doing two things wrong, one I have to guess at:
1) The ReteDisplay class is in the package 'jess', so you've got to
include the line
import jess.*;
at the top of your program.
2) I'm guessing that you've got your CLASSPATH environment variable
set to include the directory Jess40b4/jess, which is wrong; it should
include the Jess40b4 directory, something like
set CLASSPATH=c:\Jess40b4
Both of these are Java things; you might want to pick up your favorite
Java text and reread the section on 'packages'.
Finally, Jess 4.0 went final long ago; you should ditch 4.0b4 and
download the final version.
I think Debabrata Biswas wrote:
>
> Hi,
>
> I am having problem in compiling the following file in java.
> -------------------------------------------------------------------------
> import jess.*;
> import java.util.*;
> import java.io.*;
>
>
> public class SimpleJessDisplay extends Observable implements ReteDisplay {
> InputStream is;
> PrintStream os;
>
> SimpleJessDisplay (InputStream is, PrintStream os) {
> this.is = is;
> this.os = os;
> }
>
> public void AssertFact(ValueVector fact) {}
> public void RetractFact(ValueVector fact) {}
>
> public void AddDeffacts(Deffacts df) {}
> public void AddDeftemplate(Deftemplate dt) {}
>
> public void AddDefrule(Defrule rule)
> {
> // The network has chenged. Notify anyone who cares..
> setChanged();
> notifyObservers();
> }
> public void ActivateRule(Defrule rule) {}
> public void DeactivateRule(Defrule rule) {}
> public void FireRule(Defrule rule) {System.gc();}
>
> public PrintStream stdout() {return os;}
> public InputStream stdin() {return is;}
> public PrintStream stderr() {return System.err;}
> public java.applet.Applet applet() { return null; }
> }
>
> ---------------------------------------------------------
> When I try to compile, it is giving the following error :
> ----------------------------------------------------------
>
> error: File c:\jess40b4\jess\ReteDisplay.class does not contain type
> ReteDisplay as expected, but type jess.ReteDisplay. Please remove the file,
> or make sure it appears in the correct subdirectory of the class path.
> SimpleJessDisplay.java:6: Interface ReteDisplay of class SimpleJessDisplay
> not found.
> public class SimpleJessDisplay extends Observable implements ReteDisplay {
> ^
> 2 errors
>
> I can't find the error. Would you please help me.
>
> Thanks
>
> Biswas
> -------
>
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (510) 294-2154
Sandia National Labs FAX: (510) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------