Thanks alot for the response Mr. Orchard, and sorry that if I'm bugging you
and other jess users with my basic questions. Just learning programming
with Eclipse in 2nd year university and doing research on Fuzzy and Jess. To
run a given FuzzyJess example in Eclipse, I simply added the FuzzyMain.java
and FuzzyConsole.java java-classes to my existing
FuzzyJessExample Project (with the fuzzyJess .jar files in its library).
But, to start the FuzzyConsole, since I didn't know were to execute:
java -classpath "%classpath%";f:\fuzzyjtoolkit\fuzzyj110a.jar;.\
nrc.fuzzy.jess.FuzzyConsole
I got stuck and for a few days I can't figure it out where I should type &
execute this command on Eclipse.
I'd apperciate any responds/hints from anyone.
Thanks,
Seyed
On 7/12/08, Orchard, Bob <[EMAIL PROTECTED]> wrote:
>
> That error usually means that you are not using the FuzzyJess Main class
> and are still using the Jess Main
> class.
>
> From the manual ...
> How to use the Fuzzy Extensions with Jess
>
> To use the extension with Jess is really quite simple. You need to have
> access to the FuzzyJ Toolkit and FuzzyJess packages (nrc.fuzzy and
> nrc.fuzzy.jess). These will have been obtained with the appropriate
> licence requirements being met. Normally these will be in a Java jar file
> for easy inclusion in the *classpath* variable. The only other thing that
> is required is that instead of using the *Rete* object in programs, you
> must use the *FuzzyRete* object. For convenience the classes
> nrc.fuzzy.jess.FuzzyConsole and nrc.fuzzy.jess.FuzzyMain have been provided
> and they can simply replace any use of jess.Console or jess.Main.
>
>
>
> Consider the code for FuzzyMain:
>
> public class FuzzyMain extends Main
> {
> public static void main(String[] argv)
> {
> FuzzyMain m = new FuzzyMain();
> m.initialize(argv, new FuzzyRete());
> m.execute(true);
> }
> }
>
> and the code for FuzzyConsole:
>
> public class FuzzyConsole extends Console
> {
> public FuzzyConsole(String name)
> {
> super(name, new FuzzyRete());
> }
>
> public static void main(String[] argv)
> {
> new FuzzyConsole("Fuzzy Jess Console").execute(argv);
> }
> }
>
> To start the FuzzyConsole one might execute a command line similar to the
> one to start the standard Jess Console:
>
>
>
> java -classpath "%classpath%";f:\fuzzyjtoolkit\fuzzyj15a.jar;.\
> nrc.fuzzy.jess.FuzzyConsole
>
>
>
> with appropriate entries in the -classpath option to allow all necessary
> classes to be located. If you have been able to use standard Jess then you
> will no doubt have little trouble using FuzzyJess.
>
>
>
> Bob Orchard
> National Research Council Canada Conseil national de recherches Canada
> Institute for Information Technology Institut de technologie de
> l'information
> 1200 Montreal Road, Building M-50 M50, 1200 chemin Montréal
> Ottawa, ON, Canada K1A 0R6 Ottawa (Ontario) Canada K1A 0R6
> (613) 993-8557
> (613) 952-0215 Fax / télécopieur
> [EMAIL PROTECTED]
> Government of Canada | Gouvernement du Canada
>
> -----Original Message-----
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *seyed hossein
> *Sent:* Monday, July 07, 2008 12:52 PM
> *To:* [email protected]
> *Subject:* Re: JESS: Installing Fuzzy on Jess
>
> Sorry for the delay in answering but I'm away on vacation (for another
>> week or so) .. but
>> the details are in the FuzzyJ User Guide ... see the chapter on FuzzyJess
>> and the section
>> How to use the Fuzzy Extensions with Jess
>> This is a Java problem but you must use the FuzzyJess Console of the
>> FuzzyJess Main class
>> as described in the section mentioned above ..
>> Bob.
>>
>
>
>> In eclipse you can right click your project, and go to the "properties"
>> option. In this list there is a "Java Build Path" section. Click the
>> libraries tab and add your jar file there. The classpath is just the path
>> that the ...
>
>
> Thanks for the replies,
> I thought the materials in the "FuzzyJess-How to use the Fuzzy Extensions
> with Jess" section were covered by simply following Mr. Wyrick's comments
> on the addition of the fuzzyJ110a.jar file in Eclipse project
> properties>Java Build Path>Libraries.
> Doing so, the fuzzyJess example mentioned in that section seems error free
> in Eclipse, however it still gives a warning of "Undefined function at token
> 'fuzzy-match' ".
> Is this a common error on Jess or is there something wrong with my program?
> Thanks,
> Seyed
>
>