• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

this is my problem with the jess command!

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You tried



but did you try

 
reply
    Bookmark Topic Watch Topic
  • New Topic