permaculture playing cards
The moose likes Other Java Products and Servers and the fly likes Embedding Jess in my Java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Embedding Jess in my Java application" Watch "Embedding Jess in my Java application" New topic

Embedding Jess in my Java application

assiatoune assiatoune

Joined: Jun 17, 2004
Posts: 1
i have a probleme with embedding jess in my java appliation,
my projet cosists of developping intelligent agents.
eah agent has its beliefs, its rules , and its goal to be attended using the jess engine?
how can I do this?that means how can i define a class for example "beliefs" and "rule base"in java using jess and then calling the jess inference engine to attend the goal?
thanks very very match.

[edit: renamed the topic to better match the question]
[ June 17, 2004: Message edited by: Lasse Koskela ]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


Welcome to JavaRanch!

Embedding Jess in a Java program can be very simple. Let's say the rules for an agent are in a file "agentrules.clp". You can simply do this:

Of course, there's much more you can do. There are a lot of questions here, and of course I can't answer all of them in detail. The best resources for learning about Jess are the book "Jess in Action" (see my signature for the Amazon link) and the Jess user's mailing list (

Finally, note that a number of existing agent frameworks support Jess directly, so you may be able to save yourself some work just by using Jade or MadKit or Bond or ... . You can see the Related Web Sites page at the Jess web site for more links.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Embedding Jess in my Java application
It's not a secret anymore!