Dear Michael, You can set the path and execute by following the steps below,
C:\>set path=c:\j2sdk1.4.0\bin;C:\Jess61p6;. C:\>set classpath=c:\j2sdk1.4.0\bin;.C:\Jess61p6\jess.jar; C:\>cd jess61p6 C:\Jess61p6>java jess.Main examples/fullmab.clp Jess, the Java Expert System Shell Copyright (C) 2001 E.J. Friedman Hill and the Sandia Corporation Jess Version 6.1p6 11/21/2003 This copy of Jess will expire in 29 day(s). Monkey jumps off the green-couch onto the floor. Monkey walks to t2-2. Monkey climbs onto the red-couch. Monkey climbs onto the big-pillow. ....and so on...... Monkey climbs onto the blue-chest. Monkey grabs the bananas. Monkey eats the bananas. Elapsed time: 0 You can compile by using, C:\Jess61p6>javac -d . jess\examples\pumps\*.java and to execute the above, C:\Jess61p6>java jess.Main jess/examples/pumps/pumps.clp Hope this helps. It is perfectly working for me. Regards, Manoj. -----Original Message----- From: Michael Knapik [mailto:[EMAIL PROTECTED] Sent: Thursday, 25 March 2004 12:50 PM To: [EMAIL PROTECTED] Subject: Re: JESS: Newbie Problem running Jess One more attempt to resolve this please > As an aside, Jess actually *can* execute operating-system commands for > you using the "system" command: > > Jess> (system java -classpath jess.jar jess.Main examples/fullmab.clp) > > would run the example in a new Java Virtual Machine, which would then > exit, returning you to original Jess command prompt. OK I am in Jess at the Jess prompt. I type (system java -classpath jess.jar jessMain Jess61p6/examples/fullmab.clp) (I added Jess61p6 since the command (system java -classpath jess.jar jessMain examples/fullmab.clp) does not work because you said there is no examples in the CWD of C:/Jess) This should resolve the path to the examples folder as Jess61p6 is within the c:/Jess folder I still get the java.lang.NoClassDefFoundError: jessMain Exception in thread "main" <External-Address:java.lang.Win32Process> error As an aside, this error happens in JessWin as well, but when I type (batch examples/fullmab.clp) in the Jess Editor and send to JessWin the example runs. And there is not qualification to Jess61p6! The same error occurs in both JessWin and the commandprompt with (system java jess.jar jessMain Jess61p6/examples/fullmab.clp) i.e., taking -classpath out. -------------------------------------------------------------------- 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] -------------------------------------------------------------------- -------------------------------------------------------------------- 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] --------------------------------------------------------------------
