Hi,

I just decided to try viewing my Jess-6-based codebase with JessDE for the 
first time.

I ran into an unpleasant surprise which, I am concerned, suggest that I have 
arranged my code in a non-standard way, as far as Jess is concerned.

Specifically, I have arranged my Jess files along package boundaries, a la 
Java. 

For instance, lets say I have two packages with jess files in them:
- "com.awinkler" contains some base templates in a file called "templates.clp"
- "com.awinkler.app" contains some rules in a files called "rules.clp"

So, in my source tree, I would have two files:
- com/awinkler/templates.clp
- com/awinkler/app/rules.clp

What has, in the past worked fine, would be for the rules.clp file to include 
templates.clp with the line:
    (batch "com/awinkler/templates.clp")

This runs without a hitch from eclipse, since eclipse knows about the Java 
package structure. When I run the file as a Jess Application, there is no 
problem since the file is in the right spot on the classpath.

However, JessDE does object. It puts an error next to the "batch" line and 
tells me it "cannot open file."

JessDE does not object if I say, from my "com/awinkler/app/rules.clp":
    (batch "../templates.clp")

However, this does not run, because "../templates.clp" is not on the classpath.

As far as I can tell, the same issues apply whether I use "batch" or "require", 
so, for the sake of this email, I used "batch".

I am guessing that I have arranged my Jess-files in a non-conventional Jess-way 
and JessDE is letting me know ;-). It seems to me, though, that it would be 
highly desirable if JessDE was more classpath-aware. 

Does this email make sense or should I provide more details on my setup?
Any thoughts on how I should improve things? 
Is there a configuration knob I am forgetting?
Is there a place that elaborates the best-practices for Jess source-file 
directory structure?

Thanks much,

~~ Adam Winkler
Principal Research Engineer
Quova, Inc.
--------------------------------------------------------------------
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