Re: JESS: Maintaining session in JESS

2008-06-25 Thread Ernest Friedman-Hill

On Jun 24, 2008, at 2:51 PM, Deepak Pol wrote:



Now following are some questions I have:
1. Since the rules defined are being applied to any data, I want the  
rules to be created once and shared by different sessions for  
different data. For eg there can be a rule which says if total  100  
then return list of users u1, u2 and u3. Now for different  
organizations total can be different and each organization can run  
rules engine with its own data but the rules themselves are same so  
I want to share them across different organizations. Each  
organization will have its own session and data and the same rules  
in the memory are executed with this data.
What I found in Jess docs was, you need to initialize the rule  
engine by using new Rete(); and add the rule language file (*.clp)  
and the data to the working memory. But like in above example, if I  
want to add the data for some other organization but for the same  
rules then I need to create another instance of Rete and provide the  
rule language file to it in which case I end up having one file in  
working memory for each organization. Is there any way to avoid this  
and share the file for different data or for different sessions?



Yes, in several different ways. First of all, you don't need to hard  
code values like 100 in the rules; you can supply these as data. For  
example, a rule might say


if total  threshold then return list of users

and then each client could supply their own value of threshold. That  
way the rules are the same for everybody.


Secondly, you can have multiple values of threshold in the same  
engine at the same time. You could have


if processing client #1 and total for client #1  threshold for client  
#1 then...


Finally, multiple instances of the rule engine can share a single  
loaded set of rules; this is called peering and it's new in Jess  
7.1, which is about to go final.



2. As per my understanding, the only way to control the flow of  
rules execution is by creating different modules.


No, that's just one way.

If I have a condition like if Module_1 fires (i.e at least one rule  
from module is fired) the focus module_2 else focus module_3. This  
conditions can get even more complex. And also note that all rules  
from module_1 should get fired so I can't have focus statement in  
action part of any rule of module_1 since it will immediately focus  
to new module and other rules from module_1 would be skipped.  
Currenly I am planning to do it by having a global variable for each  
such condition. For eg if any rule from module_1 is fired then make  
this variable true and use it for further control. But as the  
conditions become more and more complex and provided that I want to  
create the language through some apis against using an existing one;  
I am not sure how much feasible this would be. Any suggestions on  
this?



There's a concept of a focus stack. The focus stack keeps track of  
the order in which modules will be activated. You can add and remove  
modules from the stack at any time. So  you an easily express when  
all the rules in this module have fired, proceed to module 2.



3. I want to have some modules (which would be set of rules) which  
are exclusive i.e. only one of them should fire even if others also  
match. I can do this with auto-focus for the first rule in each  
module but how to avoid others from firing. I tried halt but didn't  
work. Retracting the facts as soon as they fire is not a feasible  
option since the same fact might be used in some other rule in the  
same module which I still want to fire.




There are other ways to do this besides retracting facts; for  
instance, you can do it by asserting a fact signaling that one of the  
rules has fired, then make all the rules in the set match the absence  
of that fact.





Any help in above ragards would be really appreciable.
Thanks in advance,
- Deepak


-
Ernest Friedman-Hill
Informatics  Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.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]




Re: JESS: Maintaining session in JESS

2008-06-25 Thread Wolfgang Laun

Deepak Pol wrote:



Now following are some questions I have:
1. Since the rules defined are being applied to any data, I want the
rules to be created once and shared by different sessions for
different data. For eg there can be a rule which says if total  100
then return list of users u1, u2 and u3. Now for different
organizations total can be different and each organization can run
rules engine with its own data but the rules themselves are same so I
want to share them across different organizations. Each organization
will have its own session and data and the same rules in the memory
are executed with this data.
What I found in Jess docs was, you need to initialize the rule engine
by using new Rete(); and add the rule language file (*.clp) and the
data to the working memory. But like in above example, if I want to
add the data for some other organization but for the same rules then I
need to create another instance of Rete and provide the rule language
file to it in which case I end up having one file in working memory
for each organization. Is there any way to avoid this and share the
file for different data or for different sessions?


You could write the rules so that they use the data that depends on the
organization via defglobal variables or as slots of some Parameter
fact(s). This means that you have one file, say, rules.clp that can be
used in each session/Rete. The setup of the defglobals or the Parameter
fact(s) would require one additional .clp file for each organization.


2. As per my understanding, the only way to control the flow of rules
execution is by creating different modules. If I have a condition like
if Module_1 fires (i.e at least one rule from module is fired) the
focus module_2 else focus module_3. This conditions can get even more
complex. And also note that all rules from module_1 should get fired
so I can't have focus statement in action part of any rule of module_1
since it will immediately focus to new module and other rules from
module_1 would be skipped. Currenly I am planning to do it by having a
global variable for each such condition. For eg if any rule from
module_1 is fired then make this variable true and use it for further
control. But as the conditions become more and more complex and
provided that I want to create the language through some apis against
using an existing one; I am not sure how much feasible this would be.
Any suggestions on this?


The paradigm of controlling the execution flow is somewhat
contradictionary to the principle of rule firing. I'd suggest that you
reconsider the requirement you have formulated here. Do the rules of
module_2 really depend on some modification made by module_1? In this
case, consider the solution I propose for your 3rd question, and
generalize it so that the todo value enables or disables various rule
sets (which would not even be in different modules). Or is it just so
that the outputs from rule firing should appear in some order? Then,
just collect them in some Bag fact or slot and output them at the end.


3. I want to have some modules (which would be set of rules) which are
exclusive i.e. only one of them should fire even if others also match.
I can do this with auto-focus for the first rule in each module but
how to avoid others from firing. I tried halt but didn't work.
Retracting the facts as soon as they fire is not a feasible option
since the same fact might be used in some other rule in the same
module which I still want to fire.



The standard solution to this scenario is to add a todo slot to your
fact(s), initialize it with TRUE
   (deftemplate Foo (slot a)... (slot todo (type SYMBOL)(default TRUE)))
and modify it to FALSE as soon as it is processed by some rule:

(defrule Bar
 ?f - (Foo (a ?a)...(todo TRUE))
=
 ...
 (modify ?f (todo FALSE))
)

HTH
Wolfgang



Any help in above ragards would be really appreciable.
Thanks in advance,
- Deepak






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]




Re: JESS: NRL for Jess

2008-06-25 Thread Michael Smith


On Jun 24, 2008, at 8:53 AM, Peter Lin wrote:


I'm going to disagree that NRL is an anti-pattern.


OK.



It all depends on how you use it.


Agreed... though since I having a tendency to be querolous, I'd
change how to when.



I've successfully designed and built custom business
rule languages in the past. The key is keeping the domain well defined
and narrow.


I am tempted to envy you a bit here (in that the scope has been
defined and narrow enough to capture in a DSL, but interesting
enough to warrant an expert system shell).



Don't try to make a DSL that is a general purpose
language.


Agreed.  Unfortunately, it's been my experience that there is a
significant risk that a customer will drive DSLs inexorably towards a
general rule language.



For example, say I want to create a rule language for defining privacy
rules for mobile phones.


...crisp example elided (nothing to quibble about) ...



Once you have enough rules to get a good idea of the scope, you can
start designing the language.


Generally at the point the scope is clearly resolved in the projects
I'm thinking of, the bulk of the rules work has mostly been done.
The rules development coincided with exploring the subject domain
with one (or a handful) of experts.  The maintenance of the rules
that followed been associated with a few experts at most, along with
a knowledge engineer, and at fairly low change rates.

Changing the rules in a mobile phone privacy system or a message
routing system would seem to have a lot more rule-editing users, and
a more constrained capability than sendmail + scripting would still
be useful without a high risk of scope creep.



Writing the parser is heavily dependent
on how solid the DSL is. Once you have the parser, converting to JESS
is straight forward.


That seems reasonable.  No argument that the parser - Jess
conversion should be mechanical, if a good DSL can be designed.  But
the effort requires enough users/usage to justify.

Some rule patterns can even be simplified into fact assertions, meta-
rule to interpret them.  OTOH, the problem has to be constrained very
well, or this approach can fail in a manner analogous to a overly
specific DSL.


Perhaps the key is that one must the problem well enough defined
before attempting to define a DSL.   Analysis first, /then/ DSL
design decisions.

- Mike




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]




JESS: How to parse the Conditions ?

2008-06-25 Thread benders

Hi,

I am trying to parse this .clp file from the documentation.

(deftemplate person (slot firstname) (slot lastname) (slot age))

(defrule welcome-toddlers
Give a special greeting to young children
(person {age  3})
=
(printout t Hello, little one! crlf))

Here my Code:
public static void main(String[] args) throws FileNotFoundException,
IOException, JessException {
Rete engine = new Rete();
FileReader file = new FileReader(M:/ikor/myrules.txt);
Context context = engine.getGlobalContext();
try {
Jesp parser = new Jesp(file, engine);
Object result = Funcall.TRUE;
while (!result.equals(Funcall.EOF)) {
result = parser.parseExpression(context, false);
if (result instanceof Defrule) {
Defrule rule = (Defrule) result;
ConditionalElement ce = rule.getConditionalElements();
int gs = ce.getGroupSize();
for (int j=0;jgs;j++) {
ConditionalElement e = ce.getConditionalElement(j);
System.out.println(e.toString());
}
}
}
} finally {
file.close();
}
}

I only get Main:: person .

How can I get   {age  3}  ?

Thanks a lot

Bernd Enders


--
View this message in context: 
http://www.nabble.com/How-to-parse-the-Conditions---tp18109883p18109883.html
Sent from the Jess mailing list archive at Nabble.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]




Re: JESS: NRL for Jess

2008-06-25 Thread Peter Lin
the cost versus benefit definitely is an important consideration. In
the past, I built custom languages for privacy rules and regulatory
compliance rules, which are sufficiently narrow.

I definitely wouldn't attempt a DSL for general business rules. That
will most likely result in a nightmare.

peter

On Wed, Jun 25, 2008 at 1:50 AM, Michael Smith
[EMAIL PROTECTED] wrote:

 On Jun 24, 2008, at 8:53 AM, Peter Lin wrote:

 I'm going to disagree that NRL is an anti-pattern.

 OK.


 It all depends on how you use it.

 Agreed... though since I having a tendency to be querolous, I'd
 change how to when.


 I've successfully designed and built custom business
 rule languages in the past. The key is keeping the domain well defined
 and narrow.

 I am tempted to envy you a bit here (in that the scope has been
 defined and narrow enough to capture in a DSL, but interesting
 enough to warrant an expert system shell).


 Don't try to make a DSL that is a general purpose
 language.

 Agreed.  Unfortunately, it's been my experience that there is a
 significant risk that a customer will drive DSLs inexorably towards a
 general rule language.


 For example, say I want to create a rule language for defining privacy
 rules for mobile phones.

 ...crisp example elided (nothing to quibble about) ...


 Once you have enough rules to get a good idea of the scope, you can
 start designing the language.

 Generally at the point the scope is clearly resolved in the projects
 I'm thinking of, the bulk of the rules work has mostly been done.
 The rules development coincided with exploring the subject domain
 with one (or a handful) of experts.  The maintenance of the rules
 that followed been associated with a few experts at most, along with
 a knowledge engineer, and at fairly low change rates.

 Changing the rules in a mobile phone privacy system or a message
 routing system would seem to have a lot more rule-editing users, and
 a more constrained capability than sendmail + scripting would still
 be useful without a high risk of scope creep.


 Writing the parser is heavily dependent
 on how solid the DSL is. Once you have the parser, converting to JESS
 is straight forward.

 That seems reasonable.  No argument that the parser - Jess
 conversion should be mechanical, if a good DSL can be designed.  But
 the effort requires enough users/usage to justify.

 Some rule patterns can even be simplified into fact assertions, meta-
 rule to interpret them.  OTOH, the problem has to be constrained very
 well, or this approach can fail in a manner analogous to a overly
 specific DSL.


 Perhaps the key is that one must the problem well enough defined
 before attempting to define a DSL.   Analysis first, /then/ DSL
 design decisions.

 - Mike



 
 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]
 





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]




Re: JESS: How to parse the Conditions ?

2008-06-25 Thread Ernest Friedman-Hill

On Jun 25, 2008, at 7:12 AM, benders wrote:



Hi,

I am trying to parse this .clp file from the documentation.


You've already parsed it with the parseExpression line. I'm not sure  
what you're trying to do after that, but it's not parsing. Just  
examining the data structures for the rule? If you let us know what  
you're doing we might have more helpful advice.



   for (int j=0;jgs;j++) {
   ConditionalElement e =  
ce.getConditionalElement(j);

   System.out.println(e.toString());



A ConditionalElement is either a Pattern or a Group; you can use  
isGroup() to tell the difference. If it's not a Group, you can cast  
it to jess.Pattern, and use the (much larger) API of that class to  
extract information about the slots and the tests they contain.



-
Ernest Friedman-Hill
Informatics  Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.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]




Re: JESS: How to parse the Conditions ?

2008-06-25 Thread Wolfgang Laun
You have to determine the class of a ConditionalElement (this is an
interface for things common to Pattern, Group and Accumulate. If it is a
Pattern, you proceed by iterating over the tests, either thos in a
particular slot or over all.

Add this after your println:

if( e instanceof Pattern ){
Pattern p = (Pattern)e;
Iterator? titer = p.getTests( );
while( titer.hasNext() ){
Object o = titer.next();
System.out.println( test:  + o.toString() );
 }
}


On 6/25/08, benders [EMAIL PROTECTED] wrote:


 Hi,

 I am trying to parse this .clp file from the documentation.

 (deftemplate person (slot firstname) (slot lastname) (slot age))

 (defrule welcome-toddlers
 Give a special greeting to young children
 (person {age  3})
 =
 (printout t Hello, little one! crlf))

 Here my Code:
 public static void main(String[] args) throws FileNotFoundException,
 IOException, JessException {
 Rete engine = new Rete();
 FileReader file = new FileReader(M:/ikor/myrules.txt);
 Context context = engine.getGlobalContext();
 try {
 Jesp parser = new Jesp(file, engine);
 Object result = Funcall.TRUE;
 while (!result.equals(Funcall.EOF)) {
 result = parser.parseExpression(context, false);
 if (result instanceof Defrule) {
 Defrule rule = (Defrule) result;
 ConditionalElement ce = rule.getConditionalElements();
 int gs = ce.getGroupSize();
 for (int j=0;jgs;j++) {
 ConditionalElement e = ce.getConditionalElement(j);
 System.out.println(e.toString());
 }
 }
 }
 } finally {
 file.close();
 }
 }

 I only get Main:: person .

 How can I get   {age  3}  ?

 Thanks a lot

 Bernd Enders


 --
 View this message in context:
 http://www.nabble.com/How-to-parse-the-Conditions---tp18109883p18109883.html
 Sent from the Jess mailing list archive at Nabble.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]
 




Re: JESS: Clues on the Crash-On-Save issue

2008-06-25 Thread Henrique Lopes Cardoso

Hi,

Just letting everybody know that I have the problem again...
   Eclipse EE + Jess 71RC1 + Subclipse = random crash on save

Don't know if Subclipse brings anything new, though...

Cheers,

Henrique


Jason Morris wrote:

Hi Henrique,

I just did the same thing since I was crashing Eclipse almost every
time I saved from the Jess editor.  Ernest is evaluating whether or
not the problem is coming from the MyEclipseIDE plugins or if there is
a conflict with Eclipse proper.
So far, running a pristine Eclipse Europa Winter version without the
MyEclipseIDE installed but with the stable Jess 7.0p2 plugins and not
the betas, I have not locked-up (yet).

Keep us posted on anything you find out!  :-)

Cheers,
Jason

On Mon, Mar 17, 2008 at 8:17 AM, Henrique Lopes Cardoso [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

Hi all,

After a morning starting with those annoying crashes, I decided to
install the latest Eclipse IDE for Java EE Developers.
Then I installed Jess 71b2 plugins for Eclipse.

Apparently the crash-on-save problems are gone! But you never know
-- it
might be too soon to open the champagne... ;)

Cheers,


---
Jason Morris
Morris Technical Solutions LLC
http://www.morris-technical-solutions.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]




Re: JESS: Clues on the Crash-On-Save issue

2008-06-25 Thread Jason Morris
Hi Henrique ,

I know. :-)  Mine still does it too.  I guess all the other Jess users just
aren't doing it right.  :-D

I use the latest stable Subversive plugin for my SVN, but that doesn't seem
to affect stability.  What does is when I try to run Jess on an Eclipse
install that has the MyEclipseIDE plugins installed.  I've been maintaining
two installs of Eclipse to avoid this, but it's an awful kludge.  As always,
the Save completes, but the editor hangs Eclipse and it never recovers.  I
have to kill the Eclipse process in Task Manager and restart the workbench
-- often with loss of workbench state.

So far, it's been like trying to provide Ernest with pictures of Bigfoot.
You and I have seen it... but nobody else believes us.  :-)

Cheers,
Jason

On Wed, Jun 25, 2008 at 10:52 AM, Henrique Lopes Cardoso [EMAIL PROTECTED]
wrote:

 Hi,

 Just letting everybody know that I have the problem again...
   Eclipse EE + Jess 71RC1 + Subclipse = random crash on save

 Don't know if Subclipse brings anything new, though...

 Cheers,

 Henrique


 Jason Morris wrote:

 Hi Henrique,

 I just did the same thing since I was crashing Eclipse almost every
 time I saved from the Jess editor.  Ernest is evaluating whether or
 not the problem is coming from the MyEclipseIDE plugins or if there is
 a conflict with Eclipse proper.
 So far, running a pristine Eclipse Europa Winter version without the
 MyEclipseIDE installed but with the stable Jess 7.0p2 plugins and not
 the betas, I have not locked-up (yet).

 Keep us posted on anything you find out!  :-)

 Cheers,
 Jason

 On Mon, Mar 17, 2008 at 8:17 AM, Henrique Lopes Cardoso [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

Hi all,

After a morning starting with those annoying crashes, I decided to
install the latest Eclipse IDE for Java EE Developers.
Then I installed Jess 71b2 plugins for Eclipse.

Apparently the crash-on-save problems are gone! But you never know
-- it
might be too soon to open the champagne... ;)

Cheers,


 ---
 Jason Morris
 Morris Technical Solutions LLC
 http://www.morris-technical-solutions.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]
 




--
---
Jason Morris
Morris Technical Solutions LLC
[EMAIL PROTECTED]
(517) 304-5883


Re: JESS: Clues on the Crash-On-Save issue

2008-06-25 Thread Ernest Friedman-Hill
I definitely believe you, I just don't know how to proceed. Any stack  
traces or other info about a hung Eclipse instance would be most  
welcome.



On Jun 25, 2008, at 12:00 PM, Jason Morris wrote:


Hi Henrique ,

I know. :-)  Mine still does it too.  I guess all the other Jess  
users just aren't doing it right.  :-D


I use the latest stable Subversive plugin for my SVN, but that  
doesn't seem to affect stability.  What does is when I try to run  
Jess on an Eclipse install that has the MyEclipseIDE plugins  
installed.  I've been maintaining two installs of Eclipse to avoid  
this, but it's an awful kludge.  As always, the Save completes, but  
the editor hangs Eclipse and it never recovers.  I have to kill the  
Eclipse process in Task Manager and restart the workbench -- often  
with loss of workbench state.


So far, it's been like trying to provide Ernest with pictures of  
Bigfoot.

You and I have seen it... but nobody else believes us.  :-)

Cheers,
Jason

On Wed, Jun 25, 2008 at 10:52 AM, Henrique Lopes Cardoso  
[EMAIL PROTECTED] wrote:

Hi,

Just letting everybody know that I have the problem again...
  Eclipse EE + Jess 71RC1 + Subclipse = random crash on save

Don't know if Subclipse brings anything new, though...


Cheers,

Henrique


Jason Morris wrote:
Hi Henrique,

I just did the same thing since I was crashing Eclipse almost every
time I saved from the Jess editor.  Ernest is evaluating whether or
not the problem is coming from the MyEclipseIDE plugins or if there is
a conflict with Eclipse proper.
So far, running a pristine Eclipse Europa Winter version without the
MyEclipseIDE installed but with the stable Jess 7.0p2 plugins and not
the betas, I have not locked-up (yet).

Keep us posted on anything you find out!  :-)

Cheers,
Jason

On Mon, Mar 17, 2008 at 8:17 AM, Henrique Lopes Cardoso [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:

   Hi all,

   After a morning starting with those annoying crashes, I decided to
   install the latest Eclipse IDE for Java EE Developers.
   Then I installed Jess 71b2 plugins for Eclipse.

   Apparently the crash-on-save problems are gone! But you never know
   -- it
   might be too soon to open the champagne... ;)

   Cheers,


---
Jason Morris
Morris Technical Solutions LLC
http://www.morris-technical-solutions.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] 
.






--
---
Jason Morris
Morris Technical Solutions LLC
[EMAIL PROTECTED]
(517) 304-5883


-
Ernest Friedman-Hill
Informatics  Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.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]




JESS: installing JessDE

2008-06-25 Thread seyed hossein
Hi
It's been more than a month for me trying frustaingly to install the JessDE
on Eclipse but they all failed. To install JessDE, I've downloaded
both the Eclipse Classic 3.4 and the Eclipse IDE for Java EE Developers
from the Eclipse website, then saved them both on my desktop, installed and
ran Eclipse. After exitting Eclipse, for each Eclipse version, I coppied all
the files from Jess70/eclipse and pasted in my Desktop/eclipse file, then
extracted them. When I checked the Desktop/eclipse/plugins, but the
gov.sandia.jess_7.0.0
did not appear, nor did any of the other gov.sandia... files exist under
their corresponding directories. Therefore, no such Jess logo appeared in
the EclipseHelpAbout Eclipse Platform. I even tried transferring the Jess
files to their Eclipse directories manually but they still didn't show up in
the Plugin Details under EclipseHelpAbout Eclipse Platform.
Could anyone tell me where I'm wrong.
Where is the top-level Eclipse installation directory meant to be?
Is extracting a file equavalent to unzipping a file (unzip was not an
option for the files, only extract was there)?
Once Jess does function in Eclipse, how do we open/create a *.clp file in
it?
Thank you


Re: JESS: installing JessDE

2008-06-25 Thread Gary Napier

Hi Seyed,

I've personally not tried JESS in 3.4 yet. (it get's officially released
today), however i wouldn't expect any major problems due to backward
compatibility.

Please could you go into help-software updates - manage configuration.

You should have 3 buttons, that show various groups in the tree below.
Make sure all three are on, especially the 3rd one, show disabled features.

Now navigate the tree and see if you can find any reference to JESS. If
it is there, check what issues jess has and report them to us for
further advice,

If you have no JESS entries, then the problem rests with where the
plugins and features are put on your system. Close eclipse
The base directory is eclipse (from what you have said, Desktop/Eclipse)
and should contain a plugins and features directory as well as the
eclipse binary.
The jess download has a folder called eclipse, and in that there are 5
zip files. If you extract these 5 zip files to the one directory (say
c:\temp\jess) you should find 2 folders.
These two folders are plugins and features. Copy both folders to your
eclipse directory (overwrite is ok, as it will merge old folders with new)
Now run eclipse, and follow the same checks for the features...
(remember to clean up your temp directory afterwards)

Hope that helps.
Gary


seyed hossein wrote:

Hi
It's been more than a month for me trying frustaingly to install the
JessDE on Eclipse but they all failed. To install JessDE, I've
downloaded both the Eclipse Classic 3.4 and the Eclipse IDE for
Java EE Developers from the Eclipse website, then saved them both on
my desktop, installed and ran Eclipse. After exitting Eclipse, for
each Eclipse version, I coppied all the files from Jess70/eclipse and
pasted in my Desktop/eclipse file, then extracted them. When I checked
the Desktop/eclipse/plugins, but the gov.sandia.jess_7.0.0 did not
appear, nor did any of the other gov.sandia... files exist under their
corresponding directories. Therefore, no such Jess logo appeared in
the EclipseHelpAbout Eclipse Platform. I even tried transferring the
Jess files to their Eclipse directories manually but they still didn't
show up in the Plugin Details under EclipseHelpAbout Eclipse Platform.
Could anyone tell me where I'm wrong.
Where is the top-level Eclipse installation directory meant to be?
Is extracting a file equavalent to unzipping a file (unzip was not
an option for the files, only extract was there)?
Once Jess does function in Eclipse, how do we open/create a *.clp file
in it?
Thank you


--
_
Gary Napier
Alpha Lab
Institute for Energy and Environment
Department of Electronic and Electrical Engineering
University of Strathclyde Royal College Building
204 George Street
Glasgow
G1 1XW

e: [EMAIL PROTECTED]

t: 0141 548 2665




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]




Re: JESS: installing JessDE

2008-06-25 Thread Jason Morris
Hi Seyed,

It's been more than a month for me trying frustaingly to install the
JessDE on Eclipse but they all failed.

Hers is another thing that you may want to try:

You said that you installed Eclipse to the Windows Desktop.  Typically, the
DOS path to the desktop looks like:

C:\Documents and Settings\(username)\Desktop

Now, historically there have been issues with running Eclipse from a
directory which has spaces in its full path, especially its plugins.  See
http://dev.eclipse.org/newslists/news.eclipse.technology.imp/msg00089.html

For that reason, you might want to install Eclipse to C:\ or
C:\Programs(but not C:\Program
Files where program code would normally go).  In any case, it's probably not
a good idea to install application code to your desktop for Windows security
reasons.  The Documents and Settings folder is a high priority target of
many viruses, and it's usually public so that apps can access it.  For
example, you can see that cookies get written there.

Hope this helps, too!

Cheers,
Jason



On Wed, Jun 25, 2008 at 2:59 PM, Gary Napier [EMAIL PROTECTED]
wrote:

 Hi Seyed,

 I've personally not tried JESS in 3.4 yet. (it get's officially released
 today), however i wouldn't expect any major problems due to backward
 compatibility.

 Please could you go into help-software updates - manage configuration.

 You should have 3 buttons, that show various groups in the tree below.
 Make sure all three are on, especially the 3rd one, show disabled features.

 Now navigate the tree and see if you can find any reference to JESS. If
 it is there, check what issues jess has and report them to us for
 further advice,

 If you have no JESS entries, then the problem rests with where the
 plugins and features are put on your system. Close eclipse
 The base directory is eclipse (from what you have said, Desktop/Eclipse)
 and should contain a plugins and features directory as well as the
 eclipse binary.
 The jess download has a folder called eclipse, and in that there are 5
 zip files. If you extract these 5 zip files to the one directory (say
 c:\temp\jess) you should find 2 folders.
 These two folders are plugins and features. Copy both folders to your
 eclipse directory (overwrite is ok, as it will merge old folders with new)
 Now run eclipse, and follow the same checks for the features...
 (remember to clean up your temp directory afterwards)

 Hope that helps.
 Gary



 seyed hossein wrote:

 Hi
 It's been more than a month for me trying frustaingly to install the
 JessDE on Eclipse but they all failed. To install JessDE, I've
 downloaded both the Eclipse Classic 3.4 and the Eclipse IDE for
 Java EE Developers from the Eclipse website, then saved them both on
 my desktop, installed and ran Eclipse. After exitting Eclipse, for
 each Eclipse version, I coppied all the files from Jess70/eclipse and
 pasted in my Desktop/eclipse file, then extracted them. When I checked
 the Desktop/eclipse/plugins, but the gov.sandia.jess_7.0.0 did not
 appear, nor did any of the other gov.sandia... files exist under their
 corresponding directories. Therefore, no such Jess logo appeared in
 the EclipseHelpAbout Eclipse Platform. I even tried transferring the
 Jess files to their Eclipse directories manually but they still didn't
 show up in the Plugin Details under EclipseHelpAbout Eclipse Platform.
 Could anyone tell me where I'm wrong.
 Where is the top-level Eclipse installation directory meant to be?
 Is extracting a file equavalent to unzipping a file (unzip was not
 an option for the files, only extract was there)?
 Once Jess does function in Eclipse, how do we open/create a *.clp file
 in it?
 Thank you


 --

 _
 Gary Napier
 Alpha Lab
 Institute for Energy and Environment
 Department of Electronic and Electrical Engineering
 University of Strathclyde Royal College Building
 204 George Street
 Glasgow
 G1 1XW

 e: [EMAIL PROTECTED]

 t: 0141 548 2665



 
 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]
 




--
---
Jason Morris
Morris Technical Solutions LLC
[EMAIL PROTECTED]
(517) 304-5883