I think Sivaram Prasad Arabandi wrote:
> 

> Hi,
> I have just started using Jess and find it both fascinating and =
> frustrating.
> The manual is helpful to some extent - but I still find it difficult to =
> follow many of the short bits of code given.
> In particular I have been unsuccessful in being able to run a full Jess =
> program from a Java GUI. I am able to start the Jess program but it does =
> not proceed beyond the first user response.

Lots of threading issues involved. Study the ConsoleApplet class very
carefully (and the associated ConsoleDisplay). Also try using the
latest verison of Jess (4.1b6). Jess 4.0 is vulnerable to bugs in
several recent JDKs and browsers which make it difficult to use Jess
in an applet.


> The second problem I have had was with running of the program =
> "pumps.clp" with its 2 javabeans - "Tank.java" and "Pump.java". I can =
> run the program from the Jess command line and it does a good job at =
> balancing the tank. What I have been unable to do is run this =
> "pumps.clp" from a Java GUI. I created a very simple applet with just a =
> button "START" - on pressing this button I want it to run the Jess =
> program "pumps.clp". On pressing the button the Jess program "pumps.clp" =
> starts but stops on encountering the first defclass command.

The Bean matching stuff, and all the 'Reflection' stuff, will be
rejected with a 'SecurityException' by many web browsers. If you're
using I.E., you don't even get a report of this: the applet will just
stop dead (I.E. Java exceptions go to the bit bucket by default;
there's a way to get it to go to a log file, but I can't tell you how
offhand.) 

In Netscape, you can get around this by using digital signatures and
the Capabilities API. This is a whole topic in and of itself, and if
you're interested, you'll find tutorial information on Netscape's web
site. I think there's a similar, but different, mechanism in I.E., but
I'm not sure.

I'm not too big a fan of Applets these days; things have been getting
worse, not better.


> Will someone tell me how I can proceed.
> =20
> Thanks in advance.
> =20
> Sivaram.
> (22/08/98)
> 

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (510) 294-2154
Sandia National Labs                FAX:   (510) 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