I don't know if this is the best way (being a JESS newbie), but the
following should work:

(import java.util.Calendar)
(bind ?cal (call Calendar getInstance))
(bind ?year (?cal get (get-member Calendar YEAR)))
(printout t "The year is: " ?year crlf)

You can access member variables and static class variables using the
get-member and set-member functions.

-jason


---------------------------------------------------------------------
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]
---------------------------------------------------------------------

Reply via email to