You might want to make sure your classpath points to the *directory* above
where all the jess\*.java are located (remember - jess is in a package.)

For example, if you have the jess distribution installed here:

c:\jess\jess50

the actual jess *.java & *.class files should be in this directory:

c:\jess\jess50\jess

To confirm this, look for the file:

c:\jess\jess50\jess\Rete.java
and
c:\jess\jess50\jess\Rete.class

For deployment, you don't need the .java files but this example assumes you
compiled them in the same directory as the source files.

Your classpath should point to:

c:\jess\jess50

and *not*:

c:\jess\jess50\jess

because java is looking for the package name "jess" below any of the
directories specified in the classpath.

Enclosed is a minimal jess program and a .bat to make it work.

Note: I would not place the "current" directory (e.g. ".") in the classpath
since you may accidentally pick up the wrong class files, or worse, not find
your class files because the notion of a current directory can change over
time (even once your program is up and running) and is especially
problematic for RMI.

For this reason, the classpath.bat I enclose references all of the
directories explicitly ("c:\testjess" is where the test main.java program
resides.)

Using jess from a .jar/.zip file is basically the same. Just make sure the
classpath points to the .jar/.zip filename (e.g. "set
CLASSPATH=c:\jess\jess50.jar;other paths here" etc. etc.) and that the
.jar/.zip file was created with the subdirectory structure starting with
"jess/" (e.g. your .jar should contain the following file -
"jess/Rete.class")

Good luck!

alan



> -----Original Message-----
> From: Gavin Nunns [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 24, 2000 6:11 PM
> To: [EMAIL PROTECTED]
> Subject: JESS: deployment issue
> 
> 
> Hello
> 
> I this is not realy a Jess issue, but I'm completly at a 
> loss.  I have 
> created an application in Jbuilder2, but I am having trouble 
> deploying it.  
> All instructions I have received so far instruct me to 
> install JRE, then 
> copy the class files to the directory I wish to deploy it 
> under.  Then use 
> the -cp command to refer to the current directory and any other extra 
> classes I have used.
> 
> But here I get the problem, no matter what I do I keep on 
> getting the error 
> can't find class.  Even though it is definatly the correct path.
> 
> Any hints would be greatly appreciated as I have to get this 
> out early 
> tomorrow.  An example of a bat file command that someone else 
> has used in a 
> similar circumstance would be brilliant.
> 
> Also when deploying Jess with an application, what classes do 
> you need to 
> include.
> 
> 
> Thanks in advance for any help.
> 
> Gav
> 
> (DATA)
> ______________________________________________________________
> __________
> Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.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]
---------------------------------------------------------------------

testjess.zip

Reply via email to