I have a Java program that has the following lines:

        try {
            rete = new Rete();        

            rete.executeCommand("(batch /home/saellio/eri/jess/heart.clp)");
        } catch (JessException re) {
            re.printStackTrace();
            System.exit(1);
        }

And I get the following error:

Jess reported an error in routine batch while executing (batch
heart.clp).
  Message: Cannot open file.
  Program text: ( batch heart.clp )  at line 0.
        at jess.Batch.call(Funcall.java:2007)
        at jess.FunctionHolder.call(FunctionHolder.java:37)
        at jess.Funcall.execute(Funcall.java:228)
        at jess.Jesp.parseAndExecuteFuncall(Jesp.java:1590)
        at jess.Jesp.parseSexp(Jesp.java:185)
        at jess.Jesp.parse(Jesp.java:65)
        at jess.Rete.executeCommand(Rete.java:1581)
        at eri.ctr.GroupProcessor.initJess(GroupProcessor.java:162)
        at eri.ctr.GroupProcessor.<init>(GroupProcessor.java:48)
        at eri.ctr.RMIServer.<init>(RMIServer.java:85)
        at eri.ctr.RMIServer.main(RMIServer.java:43)

Now, when I run that same batch comman at the command prompt of
jess.Main, it loads
the clp file perfectly.  Any ideas about what might be wrong?

Thanks,
-stephen

-- 
-----------------------------------------------------------
             STEPHEN ELLIOTT   [EMAIL PROTECTED]

      Summer Research Intern   925.294.3703
      Organization 8920, ERI   PO Box 969, MS 9217 
        Sandia National Labs   Livermore, CA 94551-0969
-----------------------------------------------------------

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