• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing java Program.

 
Vijay Sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Am facing a problem with executing the java program.

I have set the path variable to PATH=d:vijay\java\jdk1.5\bin. I have saved the program in d:\vijay\java\HelloWorldApp.java and trying to execute the program in d:\vijay\java, but it is giving me an error 'javac' is not recognized as an internal or external command, operable program or batch file.

If i save the program in d:vijay\java\jdk1.5\bin and execute it is working fine, i can create my class and the program is working fine.

Please help.

Regards,
Vijay.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting the path to PATH=d:\vijay\java\jdk1.5\bin

Note the extra '\' after the d:
 
Vijay Sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Neal. It was my fault I didnt recognised that "\".. Thanks for your help..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic