~Phenom~
The No.1 Stupid
hi friends ,
i m new to java and faced the following problem while running my first program
class First
{ public static void main(String args[])
{ System.out.println("welcome");
}
}
i have saved this program as First.java in bin directory
it gets compiled successfully with command javac First.java on command prompt but when i run this using java First it gives error saying
exception in thread "main" java.lang.NoclassDefFoundError:First
please help me , tell me where is the problem? n how to solve it?
i m new to java and faced the following problem while running my first program
class First
{ public static void main(String args[])
{ System.out.println("welcome");
}
}
i have saved this program as First.java in bin directory
it gets compiled successfully with command javac First.java on command prompt but when i run this using java First it gives error saying
exception in thread "main" java.lang.NoclassDefFoundError:First
please help me , tell me where is the problem? n how to solve it?