From: Arved Sandstrom on
Cal Who wrote:
> I know one thing that is wrong. I was given the following to run it:
>
> java -cp
> fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.nrc.fuzzy.jess.FuzzyMain
> Test3.clp
>
> I'm not sure if there was a space before the .nrc.fuzzy.jess.FuzzyMain or
> not (can't tell from the notes). What do you think?
>
> Anyway, there is no file nrc.fuzzy.jess.FuzzyMain in the same folder as
> Test3.clp
>
> The other files are there because I had put them there.
>
> But I can't find out where to find nrc.fuzzy.jess.FuzzyMain. Do you know?
>
> Also why the "." in front of .nrc.fuzzy.jess.FuzzyMain?
>
>
> Thanks in advance for any helpful hints at all.

On Windows all your classpath separators should be ';', no ','.

Also, you surely don't need a '.' in front of the main class to run.

I would expect the proper command to be more like

java -cp
fuzzyJ15a.jar;sfc.jar;symbeans.jar;jess.jar;jsr94.jar
nrc.fuzzy.jess.FuzzyMain
Test3.clp

To see if nrc.fuzzy.jess.FuzzyMain is in a JAR, as we expect, try

jar tvf fuzzyJ15a.jar

I would assume it's in there, and not in jess.jar which ought to be the
vanilla JAR from Sandia.

AHS
From: Cal Who on

"Arved Sandstrom" <dcest61(a)hotmail.com> wrote in message
news:fKUfn.68825$PH1.49385(a)edtnps82...
> Cal Who wrote:
I was given the following to run it:
>>
>> java -cp
fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.
nrc.fuzzy.jess.FuzzyMain
>> Test3.clp
>>

>
> I would expect the proper command to be more like
>
> java -cp
> fuzzyJ15a.jar;sfc.jar;symbeans.jar;jess.jar;jsr94.jar
> nrc.fuzzy.jess.FuzzyMain
> Test3.clp
>
This saved me. I had a typo that was not repeated when I type the above so
you never saw it. But when I put your code under mine it showed up.

But in the example -cp does end with a semicolon followed by a dot, which I
can't imagine what it is for.
It works with it and without it.
If you have any idea why it is there I sure like to hear it.

In any event - Thanks a whole lot. You really helped.


From: Arved Sandstrom on
Cal Who wrote:
> "Arved Sandstrom" <dcest61(a)hotmail.com> wrote in message
> news:fKUfn.68825$PH1.49385(a)edtnps82...
>> Cal Who wrote:
> I was given the following to run it:
>>> java -cp
> fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.
> nrc.fuzzy.jess.FuzzyMain
>>> Test3.clp
>>>
>
>> I would expect the proper command to be more like
>>
>> java -cp
>> fuzzyJ15a.jar;sfc.jar;symbeans.jar;jess.jar;jsr94.jar
>> nrc.fuzzy.jess.FuzzyMain
>> Test3.clp
>>
> This saved me. I had a typo that was not repeated when I type the above so
> you never saw it. But when I put your code under mine it showed up.
>
> But in the example -cp does end with a semicolon followed by a dot, which I
> can't imagine what it is for.
> It works with it and without it.
> If you have any idea why it is there I sure like to hear it.
>
> In any event - Thanks a whole lot. You really helped.

OK, the lack of a space threw me there, I associated the '.' with the
main class. The '.' as a classpath component simply refers to the
current directory. But at your current stage of testing you don't have
any loose files in your current directory that need to be picked up -
everything's in JARs. Later on you might need it and it can't hurt to
put it back in.

Also, as a tip keep in mind with classpaths that the first element with
a qualifying class or resource wins out. Again, not an issue for you
yet, but down the road it might figure. Helps to keep it in mind.

AHS
From: Cal Who on

"Arved Sandstrom" <dcest61(a)hotmail.com> wrote in message
news:sPVfn.68828$PH1.11718(a)edtnps82...
> Cal Who wrote:
>> "Arved Sandstrom" <dcest61(a)hotmail.com> wrote in message
>> news:fKUfn.68825$PH1.49385(a)edtnps82...
>>> Cal Who wrote:
>> I was given the following to run it:
>>>> java -cp
>> fuzzyJ15a.jar;sfc.jar;symbeans.jar,jess.jar;jsr94.jar;.
>> nrc.fuzzy.jess.FuzzyMain
>>>> Test3.clp
>>>>
>>
>>> I would expect the proper command to be more like
>>>
>>> java -cp
>>> fuzzyJ15a.jar;sfc.jar;symbeans.jar;jess.jar;jsr94.jar
>>> nrc.fuzzy.jess.FuzzyMain
>>> Test3.clp
>>>
>> This saved me. I had a typo that was not repeated when I type the above
>> so you never saw it. But when I put your code under mine it showed up.
>>
>> But in the example -cp does end with a semicolon followed by a dot, which
>> I can't imagine what it is for.
>> It works with it and without it.
>> If you have any idea why it is there I sure like to hear it.
>>
>> In any event - Thanks a whole lot. You really helped.
>
> OK, the lack of a space threw me there, I associated the '.' with the main
> class. The '.' as a classpath component simply refers to the current
> directory. But at your current stage of testing you don't have any loose
> files in your current directory that need to be picked up - everything's
> in JARs. Later on you might need it and it can't hurt to put it back in.
>
> Also, as a tip keep in mind with classpaths that the first element with a
> qualifying class or resource wins out. Again, not an issue for you yet,
> but down the road it might figure. Helps to keep it in mind.
>
> AHS

thanks again