Forum : error
Brief description  about Online courses   join in Online courses
View nidhi  gupta 's Profile

error

class SampleProgramme {

public static void main (String[] args) {

System.out.println("This is my first Java programme !!");

}

}
this simple program is giving errors.

i m executing this program by-
D:Java Project Modules>java SampleProgramme <Hit Enter>
Asked by nidhi gupta | Nov 23, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
HI

Please follow this step...........

1. save in any directory this program with "SampleProgramme.java"
2. open command prompt go in that directory in which you save program
3. put >javac SampleProgramme.java (enter)
4. now >java SampleProgramme (enter)

i think it will give proper out put.

still any doubt than let me know.

Java Teacher
Nov 24, 2010