- Downloaded “Eclipse IDE for Java Developers”.
- The file name is “eclipse-java-juno-SR1-win32.zip”.
- This is release number 4.2 (Juno).
- Extracted the archive. Started Eclipse and stopped it.
- Extracted Jess plugins to the desired dir.
- Started Jess. Verified it’s presence.
- Installed GEF by using the built in “Juno” repository and searching for “GEF”. It showed up under “Modeling”. The installation took 10 minutes.
- Restarted Eclipse.
When you run this sample program:
(reset)
; define the counter
(deftemplate counter
(slot count (type integer) (default 0)))
; define the rule
(defrule switchme
?p <- (counter {count < 10})
=>
(printout t ?p.count crlf)
(bind ?p.count (+ ?p.count 1)))
; initialise counter
(deffunction init ()
(assert (counter (count 1))))
;initialise program
(init)
;run program
(run)
Then you get a nice structure breakdown and syntax-highlighting:
You can set breakpoints and get debug information:
Here is the Rete network:
Good to know it is available, not that I know the value of it yet! I’m just investigating the plugins.
Next step is to do the studying!
Hi,
for step #5 you mention Extracted Jess plugins to the desired dir.
What dir did you put the Jess plugins? I tried the /eclipse/plugins dir, but I can’t confirm Jess presence no matter what I do. I guess I must be missing something.
Thanks in advance,
Mersida
Mersida:
I followed the directions here:
http://www.jessrules.com/jess/docs/71/eclipse.html