Forum : Not able to compile the below program
Brief description  about Online courses   join in Online courses
View Mohan  M 's Profile

Not able to compile the below program

class SampleProgramme {

public static void main (String[] args) {

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

}

}


i get the error "javac is not recognized as an internal or external command,operable program or batch file"

i have checked for the proper installation of java by typing 'java' in command prompt.

anyone could please help me out with that?
Asked by Mohan M | Jul 20, 2010 |  Reply now
Replies (3)
View mohan m 's Profile
class SampleProgramme {

public static void main (String[] args) {

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

}

}


i get the error "javac is not recognized as an internal or external command,operable program or batch file"

i have checked for the proper installation of java by typing 'java' in command prompt.

anyone could please help me out with that?

--> in command prompt first write cd then provide the address of your directory like C:Program FilesJavaproject1
next provide javac SampleProgramme.java and after compilation give java SampleProgramme ...


I have even tried that but its still not working and displays the same error message...
Jul 27, 2010
View mohan m 's Profile
I have even tried that but its still not working and displays the same error message..
Jul 26, 2010
View bikram-ballav the-indian-student 's Profile
in command prompt first write cd then provide the address of your directory like C:\Program Files\Java\project1
next provide javac SampleProgramme.java and after compilation give java SampleProgramme ...
Jul 22, 2010