我已经在linux上安装了jess试用版。我正在尝试运行其中一个示例.clp文件。我在jess文档中使用了batch。但是我得到了一个错误。喜欢,
Jess> (batch "examples/jess/sticks.clp")
Jess reported an error in routine batch
while executing (batch "examples/jess/sticks.clp").
Message: Cannot open file.
Program text: ( batch "examples/jess/sticks.clp" ) at line 14.
Nested exception is:
examples/jess/sticks.clp (No such file or directory)请提前帮个忙谢谢
发布于 2014-03-18 01:02:17
Jess的行为与大多数其他程序没有什么不同:相对路径名是相对于程序启动时生效的工作目录进行解释的。所以,如果你已经完成了
$ pwd
/home/youser/play
$ /extra/Jess/bin/jess
Jess> (batch "examples/jess/sticks.clp")Jess期望该文件位于/home/youser/play/examples/jess/ticks.clp中。在我的系统上,我可能会成功地使用
Jess> (batch "/extra/Jess/examples/jess/sticks.clp")因为我已经解压了/extra下面的所有东西。
https://stackoverflow.com/questions/22459904
复制相似问题