I think Michael Knapik wrote: > > C:\JESS>cd Jess61p6 > C:\JESS\Jess61p6>java -classpath jess.jar jess.Main /examples/fullmab.clp
If a path starts with a "/" (or a "\", for that matter) it's an "absolute" path; that means its relative to the filesystem root, not to the current directory. You're telling Jess to look for C:\examples\fullmab.clp, which doesn't exist. > > C:\JESS\Jess61p6>java -classpath jess.jar jess.Main > c:/Jess/Jess61p6/examples/fu > llmab.clp Here you've specified a correct absolute path. There's a third alternative, which is both correct and recommended, and that's to use a path relative to the current directory: use the first version without the "/". C:\JESS\Jess61p6>java -classpath jess.jar jess.Main examples/fullmab.clp > > And related to that - at the end of the session (see below), I have to CWD > to c:\Jess to do the Java jess.Main, when *that* (via Jess.jar) is in the > C:\JESS\Jess61p6 directory!? > > C:\JESS\Jess61p6>cd \Jess > > C:\JESS>java jess.Main Now here, you're not specifying -classpath, so the CLASSPATH environment variable is used. If your CLASSPATH is set correctly, then the CWD will not matter at all. If you've set it incorrectly -- i.e., by using a relative path to jess.jar, for example -- then this will only work from certain places. --------------------------------------------------------- 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] --------------------------------------------------------------------
