I think Rohan Tandel wrote: > To all JESS Users, > I have the following doubts: > > 1. The Applet version of JESS i.e. jess.consoleApplet > does not open in a web browser. On my Windows 98 > machine I am able to view the jess.ConsoleApplet > interface with the "console.html" file using > appletviewer.
Did you look at the file and do what it says? <!-- Move this to the top-level JessXX directory, and open it there --> <!-- with appletviewer or your favorite browser. --> <applet code=jess.ConsoleApplet height=320 width=500> </applet> > Any suggestions or corrections for opening it in a > web-browser are welcome. If you don't have a licensed copy of Jess, then you'll have to modify the file to use the "archive" attribute and point to jess.jar. Sounds like you may need a book on working with applets. > > 2. By typing JESS commands in "scriptlib.clp" we can > load additional files during the JESS Environment > start-up. However using the command > > (batch examples/animal.clp) > > in "scriptlib.clp" causes the file to be executed in > the DOS environment. How can the same file be loaded > upon start-up on the jess.Console interface? > You can't. That isn't what scriptlib is for; you can add library functions there, but generally you should leave it alone. If you want jess.Console to run a script when you start it up, then pass the name of the script as a command-line argument! > 3. The following code shows errors: > Indeed; Java try blocks must appear -inside- of methods, but you've put one -outside-. This is a very fundamental Java issue; can I humbly recommend that you get an introductory Java book so that you have a good reference for this sort of issue. > public void paint(Graphics g) throws JessException > > then also another error message shows that the paint > method can not be overridden. Again, a fundamental Java programming concept; when you override a method, you can't change the exception declaration. The try block should go inside the method, around just the code. And you DON'T want to be calling "batch" inside a paint() method! --------------------------------------------------------- Ernest Friedman-Hill Distributed Systems 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] --------------------------------------------------------------------