JESS: Very strange error when running Jess

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

JESS: Very strange error when running Jess

Matt Hutchinson
Hi everyone,

I've been using Jess just fine on my Mac, but I've just gone ot use it
on the PC (Windows XP) and things are going wrong!

All the environment variables have been set, and I get this error when
running "jess":

Exception in thread "main" java.lang.NoClassDefFoundError: Files\Agent


I totally have no idea what has happened.

Thanks,
Matt



--
Matthew Hutchinson
Ph.D. Candidate

Department of Spatial Sciences
Curtin University of Technology
GPO Box U1987
Perth, Western Australia 6845
tel: +61 (8) 9266 7562 & mob: 040 395 3920


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
in the BODY of a message to [hidden email], NOT to the list
(use your own address!) List problems? Notify [hidden email].
--------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: JESS: Very strange error when running Jess

friedman_hill ernest j
Hi,

Well, there's no class in Jess by that name. It looks like a problem
that could be caused your classpath having spaces in it -- that
"Files" is probably the second word of "Program Files."

Looking at the "jess.bat" script, I see that I don't have any
quotation marks in there to prevent this kind of problem, and that may
be it right there. If so, that's my fault. Near the end of that file,
where it says

:start
%RUN_JAVA% -classpath .;%JESS_HOME%\lib\jess.jar;%JESS_HOME%\lib\jsr94.jar;%CLASSPATH% jess.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

can you fix it to say

:start
%RUN_JAVA% -classpath ".;%JESS_HOME%\lib\jess.jar;%JESS_HOME%\lib\jsr94.jar;%CLASSPATH%" jess.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

(I just added a pair of double quotes) and please let us know if this
fixes the problem?




I think Matthew Hutchinson wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]

> Hi everyone,
>
> I've been using Jess just fine on my Mac, but I've just gone ot use it
> on the PC (Windows XP) and things are going wrong!
>
> All the environment variables have been set, and I get this error when
> running "jess":
>
> Exception in thread "main" java.lang.NoClassDefFoundError: Files\Agent
>
>
> I totally have no idea what has happened.
>
> Thanks,
> Matt
>
>
>
> --
> Matthew Hutchinson
> Ph.D. Candidate
>
> Department of Spatial Sciences
> Curtin University of Technology
> GPO Box U1987
> Perth, Western Australia 6845
> tel: +61 (8) 9266 7562 & mob: 040 395 3920
>
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
> in the BODY of a message to [hidden email], NOT to the list
> (use your own address!) List problems? Notify [hidden email].
> --------------------------------------------------------------------
>



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [hidden email]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
in the BODY of a message to [hidden email], NOT to the list
(use your own address!) List problems? Notify [hidden email].
--------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: JESS: Very strange error when running Jess

Chad Loder
In reply to this post by Matt Hutchinson
On Tue, Jul 26, 2005 at 05:33:41PM +0800, Matthew Hutchinson wrote:

> Hi everyone,
>
> I've been using Jess just fine on my Mac, but I've just gone ot use it
> on the PC (Windows XP) and things are going wrong!
>
> All the environment variables have been set, and I get this error when
> running "jess":
>
> Exception in thread "main" java.lang.NoClassDefFoundError: Files\Agent
>
>
> I totally have no idea what has happened.
>
> Thanks,
> Matt

Matt,

Sounds like you have a classpath with spaces in it (e.g.
"C:\Program Files\something") ?

        c

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
in the BODY of a message to [hidden email], NOT to the list
(use your own address!) List problems? Notify [hidden email].
--------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: JESS: Very strange error when running Jess

Matt Hutchinson
In reply to this post by friedman_hill ernest j
Hi, and as always thanks for the prompt reply

To be honest I'm still not quite sure what was causing that problem -
but I reinstalled Java and it went away. HOWEVER, when installing for
a workmate, the "space" in the C:\Program Files was an issue. I tried
inserting the " " where you mentioned, but it still had problems and
from the output was still treating JAVA_HOME as C:\Program

My trick was to set the JAVA_HOME to C:\Progra~1\Java\jdk1.etc.etc.
Note the tilde to represent the directory as an old school 8 character
directory name - this worked fine.

Cheers,
Matt


On 7/27/05, [hidden email] <[hidden email]> wrote:

> Hi,
>
> Well, there's no class in Jess by that name. It looks like a problem
> that could be caused your classpath having spaces in it -- that
> "Files" is probably the second word of "Program Files."
>
> Looking at the "jess.bat" script, I see that I don't have any
> quotation marks in there to prevent this kind of problem, and that may
> be it right there. If so, that's my fault. Near the end of that file,
> where it says
>
> :start
> %RUN_JAVA% -classpath .;%JESS_HOME%\lib\jess.jar;%JESS_HOME%\lib\jsr94.jar;%CLASSPATH% jess.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
>
> can you fix it to say
>
> :start
> %RUN_JAVA% -classpath ".;%JESS_HOME%\lib\jess.jar;%JESS_HOME%\lib\jsr94.jar;%CLASSPATH%" jess.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
>
> (I just added a pair of double quotes) and please let us know if this
> fixes the problem?
>
>
>
>
> I think Matthew Hutchinson wrote:
> [Charset iso-8859-1 unsupported, filtering to ASCII...]
> > Hi everyone,
> >
> > I've been using Jess just fine on my Mac, but I've just gone ot use it
> > on the PC (Windows XP) and things are going wrong!
> >
> > All the environment variables have been set, and I get this error when
> > running "jess":
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError: Files\Agent
> >
> >
> > I totally have no idea what has happened.
> >
> > Thanks,
> > Matt
> >
> >
> >
> > --
> > Matthew Hutchinson
> > Ph.D. Candidate
> >
> > Department of Spatial Sciences
> > Curtin University of Technology
> > GPO Box U1987
> > Perth, Western Australia 6845
> > tel: +61 (8) 9266 7562 & mob: 040 395 3920
> >
> >
> > --------------------------------------------------------------------
> > To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
> > in the BODY of a message to [hidden email], NOT to the list
> > (use your own address!) List problems? Notify [hidden email].
> > --------------------------------------------------------------------
> >
>
>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Advanced Software Research          Phone: (925) 294-2154
> Sandia National Labs                FAX:   (925) 294-2234
> PO Box 969, MS 9012                 [hidden email]
> Livermore, CA 94550         http://herzberg.ca.sandia.gov
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
> in the BODY of a message to [hidden email], NOT to the list
> (use your own address!) List problems? Notify [hidden email].
> --------------------------------------------------------------------
>
>


--
Matthew Hutchinson
Ph.D. Candidate

Department of Spatial Sciences
Curtin University of Technology
GPO Box U1987
Perth, Western Australia 6845
tel: +61 (8) 9266 7562 & mob: 040 395 3920


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
in the BODY of a message to [hidden email], NOT to the list
(use your own address!) List problems? Notify [hidden email].
--------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: JESS: Very strange error when running Jess

friedman_hill ernest j
I think Matthew Hutchinson wrote:

> I tried inserting the " " where you mentioned, but it still had
> problems and from the output was still treating JAVA_HOME as
> C:\Program

All right, thanks. I'll have to grab a Windows machine I can use to
experiment with and straighten this out.



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [hidden email]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [hidden email]'
in the BODY of a message to [hidden email], NOT to the list
(use your own address!) List problems? Notify [hidden email].
--------------------------------------------------------------------