> 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)
[alan]
This isn't something you would normally do. I think Ernest was just letting you know that it is *possible* to run a system command (i.e. java.exe) from within jess.
>Yet my classpath is set as you instructed as follows
>
>USER var
>CLASSPATH
>;.;C:\Jess\Jess61p6\jess.jar
>
>Path c:\j2sdk1.4.2_04\bin;c:\Sun\AppServer\bin;.;C:\Jess\Jess61p6\jess.jar
>
>System var
>Path %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program
>Files\Sonic\MyDVD;C:\Program Files\Common Files\Adaptec Shared\System;C:\MSSQL7\BINN;C:\Program Files\ATI Technologies\ATI Control Panel;C:\j2sdk1.4.2_04\bin;.;C:\Jess\Jess61p6\jess.jar
[alan]
By having c:\Jess\Jess61p6\jess.jar in your CLASSPATH environment variable, you can run jess from anywhere. In this case, I think you ran it from c:\Jess, not from c:\Jess\Jess61p6 so your "relative" path would be rooted at c:\Jess and requires you to include the Jess61p6 prefix like so:
c:\Jess>java jess.Main Jess61p6/examples/fullmab.clp
note: c:\Jess> is the MS-DOS prompt, not jess' jess> prompt.
To reduce confusion about which prompt you are looking at, try setting your PROMPT environment variable to something like "CMD:" like so:
set PROMPT=CMD:
It is generally not a good idea to have the "current directory" in your CLASSPATH. Before you know it, you will be picking up classes from all kinds of unintended places. In fact, I'd even go so far as to suggest not depending on the CLASSPATH environment variable at all. You can create a batch file to run the jess examples that forces your environment to be well known and explicit.
rem ---- RunJessExample.bat ----
set CLASSPATH=
set JESS_HOME=c:\Jess\Jess61p6
java -classpath $JESS_HOME\jess.jar jess.Main $JESS_HOME/examples/%1
With this, you should be able to type:
CMD:RunJessExample.bat fullmab.clp
Also, having jess.jar on your PATH is not very useful.
Good luck!
alan