File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes this is my problem with the jess command! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "this is my problem with the jess command!" Watch "this is my problem with the jess command!" New topic
Author

this is my problem with the jess command!

assia assiatoune
Greenhorn

Joined: Jul 11, 2004
Posts: 16
hello,
first ,thanks alot for all.

as I said, Iwork with JBuilder ,
my project is named "test_project" and it is saved in d:\test_project.
in this project ,I have a javafile named "test" ( a class)
in this class I use the command engine.executeCommand("batch....");
to load a .clp file (I wanted to load one of the files located in the jess examples ,for example: draw.clp which is situated in the :\jess6p7\jess\examples\draw.clp) I wrote so ,in the test class like this
class test{

public test()
{
try
{Rete r = new Rete();
r.executecommand("(batch d:/jess6p7/jess/examples/draw.clp )");
//r.reset();
//r.run();
}
catch(JessException j)
{System.out.println(j.getMessage());
}
}
}

and in the execution I got: can't open file!!!
and sometimes Bad SlotType!!!
I'd tried with :
r.executecommand("(batch\d:/jess6p7/jess/examples/draw.clp\)");

but the result was the same.

so where is the problem?

thanks thanks ,thanks alot for all.
luyza.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

You tried



but did you try



[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: this is my problem with the jess command!
 
Similar Threads
rule engines
Information needed on JESS
questions about JESS,
Embedding Jess in my Java application
problem with jess!!!