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.
Any suggestions or corrections for opening it in a
web-browser are welcome.
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?
3. The following code shows errors:
import jess.*;
import java.awt.*;
import java.applet.*;
public class sample extends Applet
{
try
{
Rete r=new Rete();
public void paint(Graphics g)
{
g.drawString(r.executeCommand("(batch
examples/animal.clp)"),50,50);
}
}
catch(JessException je)
{
System.err.println(je);
}
}
The error shows some illegal start of "try".
If the try-catch construct is removed & the "throws"
clause is used as follows:
public void paint(Graphics g) throws JessException
then also another error message shows that the paint
method can not be overridden.
How can the JESS Exception be caught if the output of
the animal.clp file has to be displayed on the applet?
Waiting for your help!
- Rohan
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------