I think Matthew Hutchinson wrote:
> 
> but with .executeCommand the same " " around the string causes the
> program to crash.

I can't say for sure, but I think what you're calling a "crash" here
is a Java compiler error, and this is a Java syntax question, not a
Jess question so much.

If you want to write a Java string containing a double quote, you have
to "escape" it with a backslash:

String aString = "\"Balderdash!\", he exclaimed.";

This applies in your case too; i.e.,

Rete engine = ...
engine.executeCommand("(assert (foo \"bar\"))");


---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

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