Hello James,
Monday, March 31, 2003, 8:20:16 AM, you wrote:
JCO> For those of you having trouble with the Java CLASSPATH being set properly
JCO> and/or typing long names and making silly mistakes, there is a free tool at
JCO> http://home.attbi.com/~raygao/coffeecup/instruction.html
JCO> That mi
Of Karen Fox
> Sent: Thursday, March 20, 2003 9:03 PM
> To: [EMAIL PROTECTED]
> Subject: JESS: Passing a Java Variable in a Jess Call
>
> I am trying to change some of my paths to files into Java variables so
> that we only have to change them in one place if necessary. However,
>
PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Karen Fox
Sent: Thursday, March 20, 2003 9:03 PM
To: [EMAIL PROTECTED]
Subject: JESS: Passing a Java Variable in a Jess Call
I am trying to change some of my paths to files into Java variables so
that we only have to change them in one place if necessary
Adding onto my own message, I figured it out.
String pp = "(load-project " + Protegepath.elementValue + ")";
System.out.println("pp is " + pp);
r.executeCommand(pp);
This works. I had tried it with escaped quotes but that wouldn't work.
Not escaping quotes does.
Karen
Kare
Karen Fox wrote:
...
I've tried isolating the variable:
r.executeCommand("(load-project " + Protegepath + ")");
I do stuff like this all the time:
String cmd = "(retract-fault-fact " + uuid + ")";
_rete.executeCommand(cmd);
Works for me.
--
Richard Kasperowski
Tel: 617-576-1552, Fax: 617-576-24
Title: RE: JESS: Passing a Java Variable in a Jess Call
The most possible explanation is that the Protegepath contains backslashes. Jess understands forwardslashes only.
Olga Medvedeva.
-Original Message-
From: Karen Fox [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 20, 2003 3
2000/projects/OrgOnt.pprj)"
The forward and backward backslashes often create problems
in file specifications.
Bob
-Original Message-
From: Karen Fox [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 3:03 PM
To: [EMAIL PROTECTED]
Subject: JESS: Passing a Java Variable in a Jess Cal
I am trying to change some of my paths to files into Java variables so
that we only have to change them in one place if necessary. However,
when I try to pass the variable in a rete.executeCommand, it won't work.
Is that because I can't mix Jess and Java?
For instance, this works:
r.executeCom