I think Vive S.Kumar wrote:
> 
> Hi,
> 
> I am trying to run the jess\examples\pumps example with modifications to
> send the output to a TextArea.  I didn't change Pump.java or Tank.java.  I
> only added a few lines of code in MainInJava.java to redirect the output to
> the textarea.  It gives the following compilation error.
> 
> rete.addOutputRouter("t", taw);
>                                   ^ Type Expected in line 70
> 


All the code you added is after the closing brace of the method main(), inside the
class body. In Java, all executable code has to be inside a method
(more or less.)

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

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to