wood burning stoves
The moose likes Beginning Java and the fly likes Executing java Program. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Executing java Program." Watch "Executing java Program." New topic

Executing java Program.

Vijay Sharma

Joined: Oct 12, 2005
Posts: 17

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.


Cheers,<br />Vijay Sharma
Joanne Neal

Joined: Aug 05, 2005
Posts: 3742
Try setting the path to PATH=d:\vijay\java\jdk1.5\bin

Note the extra '\' after the d:

Vijay Sharma

Joined: Oct 12, 2005
Posts: 17
Thanks Neal. It was my fault I didnt recognised that "\".. Thanks for your help..
I agree. Here's the link: http://aspose.com/file-tools
subject: Executing java Program.
It's not a secret anymore!