I think Mikael Rundqvist (ERA) wrote:

> test1 console stays up
> test2 console stays up
> test3 console terminates directly and no exception message is printed. 
> test4 console terminates directly and no exception message is printed. Notice the 
>"misspelled" filename where I did not use an extra backslash
> main stays up (gets an non-null string-array of length=0)
> 
> in all cases the whole program terminates since console seems to do a System.exit(0) 
>when the command (exit) is used.
> Notice that no run generates an exception though it seems likely that both 3 and 4 
>ought to do that.
> 

First, note that jess.Main and jess.Console are really programmer's
tools first, and examples second, and only as a last resort are they
intended to be embedded into your Java programs. Especially Console,
given that it's deliberately broken into Console and ConsolePanel so
you can use the pitiful little GUI independently.

Anyway, that said, Main.initialize(), called from Console, does indeed
call System.exit() on failure, although it prints an exception message
first. It prints it to System.err, though, and on some JVM/OS
combinations, stuff printed to System.err right before exit can get
lost. I've forgotten about this -- noone's mentioned it in a long
time. I'll look and see when I can do about it. Thanks for reminding
me. 




---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [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
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to