javascript
Brief description  about Online courses   join in Online courses
View Leepika  Mukherjee 's Profile

Class not found error

Hi,

I am getting error as "Exception in thread main.. NO class def found...". The programme is as below :-

class MyFirstJavaProgramme
{
public static void main (String[] args)
{
System.out.println("Hurray! This is my first Java programme!!");
}
}

File name is MyFirstJavaProgramme.
Asked by Leepika Mukherjee | Jan 12, 2011 |  Reply now
Replies (1)
View arun kumar das 's Profile
HI

you supposed to set the jdk path (like C:Program FilesJavajdk1.6.0_22bin) in environment variable.
go to my computer property->advanced->Environment variable-> click on New -> put 'path'in first text box and jdk path like 'C:Program FilesJavajdk1.6.0_22bin' in second text box.
than OK.
restart your computer and try to run your program

still you have doubt or unable to do that than you can call to Abhishek on siliconindia development extension on working time.

java teacher
Jan 12, 2011