On Mar 6, 2007, at 2:11 AM, rameshs wrote:
when i am uesing JESS in java, i got an error package jess doens
not exist(import jess.*). where can i get it. or what i have to do
to correct this error. import jess.*; public class ExSquare
{ public static void main(String[] unused) { try { Rete r = new Rete
(); r.eval("(deffunction square (?n) (return (* ?n ?n)))"); Value v
= r.eval("(square 3)"); System.out.println(v.intValue
(r.getGlobalContext())); } catch (JessException ex)
{ System.err.println(ex); } } } this is the simple program i was
executing. i got an error that jess package does not exists.
View this message in context: Jess package to use in java
This is not a Jess question, but a basic Java programming question.
To use Jess in your Java programs, you have to tell the compiler
about the Jess library (the file jess.jar). Either use the "-
classpath" argument to javac.exe, use the CLASSPATH environment
variable, or tell your IDE about jess.jar. If you're not sure how to
do any of these, consult a local Java expert or go ask on a Java
programming forum like http://saloon.javaranch.com .
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------