Forum : java compilation
Brief description  about Online courses   join in Online courses
View Mohan  M 's Profile

java compilation

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...
Asked by Mohan M | Jul 27, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
Hi Mohan,

Please access the below link which explains the procedure to set the path:
http://www.siliconindia.com/onlineeducation/replyquestion.php?bQ9ycfRq472UbKAll7Lv4fJLWyBNe62Y&gid=1378&id=1EpzlumN

Regards,
JT
Aug 6, 2010