This is probably just an error in specifiying the CLASSPATH. The
CLASSPATH should -not- contain Codigo1 or CFP. It -should- contain the
directory in which CFP appears. For instance, if it's in
/home/fred/java/CFP, then CLASSPATH should contain
/home/fred/java. This is no different than how it works for any other
Java program.
I think Frederico Luiz Goncalves de Freitas wrote:
>
>
> Hi,
>
> I'm a newcomer in Jess and I 'm probably doing something wrong. Jess is
> not finding the class of an object I'm trying to create. Does
> anybody knows why? Here's the code (all files under \CFP\Codigo1
> directory - I'm not using java Beans):
>
> Jess code :
>
> (bind ?url (fetch string_URL))
>
> (defglobal ?*page* = (new CFP.Codigo1.PaginaWWW ?url))
> _____________________________________________
> Java code :
>
> package CFP.Codigo1;
>
> import java.io.*;
> ...
>
> public class PaginaWWW {
> public URL url;
> ...
> ******************************************************************************
> // Constructor
>
> PaginaWWW( String wurl ) {
> ...
> _________________________________________
>
> Error :
>
> Jess> TRUE
> Jess> "http://www.ahsr.org/1998/abstracts/index.html"
> Jess> Class not found
> java.lang.ClassNotFoundException: CFP.Codigo1.PaginaWWW
> ( defglobal ?*page* = ( new CFP.Codigo1.PaginaWWW ?url )
> new
> Jess reported an error in routine new while executing (new
> CFP.Codigo1.PaginaWWW ?url) while executing definition for defglobal
> ?*page*.
> Message: Class not found.
> Program text: ( defglobal ?*page* = ( new CFP.Codigo1.PaginaWWW ?url )
> at line 27.
>
> I'm executing at UNIX. CLASSPATH contains directories CFP/Codigo 1 and
> parents.
>
> Thank you in advance for any help.
>
> Fred Freitas
> Univ. Sta Catarina - Brasil
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------