java lang exception error

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

The "." (dot) goes in your classpath by all means.
It tells the Java tools to look for class files in the current folder.
Take a look at a classic from johnr, to quote talleyrand, a "kick a** post" :D
A must read for all here, #inc(self).
Then I open up and see
the person fumbling here is me
a different way to be
aroraskid
Posts: 3
Joined: Tue Feb 10, 2004 8:49 am

Post by aroraskid »

I WROTE A SIMPLE PROGRAM "HELLO, WORLD!", I complied it, and i ran it....but cannot run
message says:

Exception in thread "main" java.lang.NoClassDefFoundError: Hello
Press any key to continue . . .

What do i do?
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

Post the code and the file name because you have an error.
I choose to fight with a sack of angry cats.
Post Reply