I think Michael Knapik wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> MessageWell, I am back.
> 
> 
> At the Jess> prompt in the command prompt window I type (there is no
> "sticks" example in my examples folder as the manual says there is)

You're correct, the sticks demo hasn't been included in the last few
releases. Software distributions do change, although in this case it
was an oversight that I can correct in the future. Thanks for pointing
it out.

Regarding the Jess61 vs Jess61p6 difference: note that at the bottom
of page 33, the book makes a special effort to describe this directory
name as "JessXX" and clearly states that the value of XX changes over
time. Note, also, that if you follow the instructions in the manual,
rather than the book, then the Jess version number matches the version
of the software you've obtained.


> Jess> (batch \Jess61p6\examples\fullmab.clp)
...
> Nested exception is:
> \jess61p6examplesfullmab.clp (The system cannot find the file specified)
> 

Since you're expecting the manual to exactly match what you need to
type and what happens in response, then you need to type exactly what
the manual says. Note that the examples of using the batch function in
manual section 1.6.3 use a forward slash "examples/fullmab.clp", not a
backward one. Backslashes have a special meaning in Jess (as they do
in virtually all programming languages, with the singular unfortunate
exception of the DOS command prompt "language.") Note that the
documentation for "batch" (see
http://herzberg.ca.sandia.gov/jess/docs/61/functions.html#batch)
discusses this very issue and presents several approaches.

> 
> When type java -classpath jess.jar jess.Main examples/fullmab.clp into the 
> JessEditor and send to JessWin I get
> 
> Jess> java -classpath jess.jar jess.Main examples/fullmab.clp

You've typed an operating-system command line to Jess. Jess sees a
string of symbols, which is dutifully echoes back to you.

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.

> 
> I tried several of the examples and all give the same result.

The book and the manual make an attempt to distinguish
operating-system commands from Jess commands by showing things typed
to Jess in context with a Jess prompt. All command lines starting with
"java" are intended for the operating system rather than for Jess. In
addition, in the book I use (most of the time anyway) a DOS prompt
like "C:\>" or similar to indicate OS commands. In later chapters I
abandon the pretense of using a Windows machine and start showing
Linux system prompts instead.

> Is there a proven step by step tutorial out there that leads one
> through the steps in this?

The Jess manual is actually generated from XML source. The examples
are written in such a way that they can be mechanically extracted,
run, and compared against the given result. So I can say with 100%
confidence that all the code examples in the manual will work exactly
as shown.

It sounds like you're coming up to speed on Java, Jess, and the DOS
command line all at the same time. That's a lot to digest all at
once. Just relax and take your time -- you'll get through just fine.

---------------------------------------------------------
Ernest Friedman-Hill  
Science and Engineering PSEs        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to