JessInJava

Relatively simple to do:

	import jess.*;

NullDisplay nd = new NullDisplay();

// Create a Jess engine Rete rete = new Rete(nd);

// Open the file test.clp FileInputStream? fis = new FileInputStream?("test.clp");

// Create a parser for the file, telling it where to take input // from and which engine to send the results to Jesp j = new Jesp(fis, rete); try { // parse and execute the code, without printing a prompt j.parse(false); } catch (ReteException? re) { // All Jess errors are reported as 'ReteException?'s. re.printStackTrace(nd.stderr()); }


		[JessAndJava | JessAndAgents | JessUserFunctions]

(last edited November 3, 1999)
Find Page by browsing or searching