Bryce, This error occurs, when the classpath is not set properly. You have to set the classpath before running/compiling your java files.
export CLASSPATH=$CLASSPATH:<current-dir> Hope this helps you out. Cheers Ragu ----- Original Message ----- From: "bryce verdier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 3:35 PM Subject: [gentoo-user] Java error > I'm new to the whole java language. Anyway, i'm using kdevelop as my ide, and > i have this simple java code: > > class Main{ > > public static void main( String[] args ){ > System.out.println( "Hello, world!" ); > } > } > > > and when i try to compile it i get this error: > > Exception in thread "main" java.lang.NoClassDefFoundError: Main > > I know this may not be the right place to talk about this... but any help > would be appreciated. > > thanks, > bryce > > > > -- > [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list