Hi,
I am getting the above problem when trying to
run a small piece of Java code.
I have jdk1.6.0_01 and jre1.6.0_01.
Any help much appreciated.
Regards,
Tony

Signature
Posted via a free Usenet account from http://www.teranews.com
Gordon Beaton - 25 Sep 2007 11:35 GMT
> I am getting the above problem when trying to run a small piece of
> Java code.
>
> I have jdk1.6.0_01 and jre1.6.0_01.
You don't need both packages; the jdk includes the jre.
Your class has a package declaration ("package components;") and
therefore called "components.TableDemo", not "TableDemo". Specify the
correct name when you run the program, or remove the package
declaration and recompile.
More here:
http://www.yoda.arachsys.com/java/packages.html
/gordon
--
Tony McGuinness - 25 Sep 2007 12:28 GMT
>> I am getting the above problem when trying to run a small piece of
>> Java code.
[quoted text clipped - 15 lines]
>
> --
Cheers

Signature
Posted via a free Usenet account from http://www.teranews.com
Roedy Green - 26 Sep 2007 11:27 GMT
On Tue, 25 Sep 2007 11:17:15 +0100, Tony McGuinness
<aongusa@imagine.ie> wrote, quoted or indirectly quoted someone who
said :
>Hi,
>
>I am getting the above problem when trying to
>run a small piece of Java code.
see
http://mindprod.com/jgloss/runerrormessages.html#NOCLASSDEFFOUNDERROR

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com