javascript
Brief description  about Online courses   join in Online courses
View shubhasmita  panda 's Profile

error in execution

/**
* This MyFirstJavaProgramme class implements an application that simply
* prints “Hurray! This is my first Java programme!!” to standard output.
*/
class MyFirstJavaProgramme {

/* This is the main class*/

public static void main (String[] args) {

System.out.println("Hurray! This is my first Java programme!!");
// Displays String

}

}

sir i tried to execute this prog after compilation,but it seems to be exception in thread main classnotfoundexceptionerror
Asked by shubhasmita panda | Dec 27, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
Hi

copy & past this program, save it with MyFirstJavaProgramme.java and than try to run.

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


for compile & run
>javac MyFirstJavaProgramme.java
>java MyFirstJavaProgramme


Java Teacher
Dec 28, 2010