> 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

This is indeed the wrong place to discuss basic java programming, but
anyway.

I suspect you issued:

java Main.java

rather than:

javac Main.java        (compile)
java Main              (run)

Gwendolyn.



--
[EMAIL PROTECTED] mailing list

Reply via email to