Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / September 2007

Tip: Looking for answers? Try searching our database.

Exception in thread "main" java.lang.NoClassDefFoundError: TableDemo (wrong name: components/TableDemo)

Thread view: 
Tony McGuinness - 25 Sep 2007 11:17 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.