0

Can you run javac ExampleProgram.java, If ExampleProgram.java is on a different drive

I run E:\User\Documents\JavaCode>javac HelloWorld.java and I get this: 'javac' is not recognized as an internal or external command, operable program or batch file.

4th Nov 2016, 5:29 AM
Dakota Myhand
Dakota Myhand - avatar
2 odpowiedzi
+ 1
Yes if you have added you Java JDK to the system environment variables path then you should able to run ExamplePrograme.java with CMD if the file can be reached.
4th Nov 2016, 5:09 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
4th Nov 2016, 5:45 AM
Simone Trombiero