On Oct 20, 2006, at 8:17 PM, J Michael Dean wrote:
Caused by: java.io.FileNotFoundException: rules/Glucose.clp (No
such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at jess.Batch.findDocument(Batch.java:121)
... 22 more
Jess will, as always, first look relative to the current directory,
and then along the runtime CLASSPATH. Eclipse is quite tricky about
how it manages the CLASSPATH when it launches Java applications;
things do change from version to version. But the important thing to
note here is that you're launching a Java application, not a Jess
application, so Jess's Eclipse-related code doesn't come into play at
all -- it's all about the runtime CLASSPATH, which in turn is going
to be related to how you set up your Java project to be run. Make
sure the "rules" directory is being exported when you build the
project. You might add some extra debug code to print the CLASSPATH
and print the current working directory (and possibly its contents)
and you'll probably simply find that the "rules" directory is simply
not available at runtime.
---------------------------------------------------------
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]
--------------------------------------------------------------------