when I try to compile ExampleProgram.java, Cmd just gives me my dir again...can someone explain & help me get pass this? thanks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

when I try to compile ExampleProgram.java, Cmd just gives me my dir again...can someone explain & help me get pass this? thanks

6th Dec 2016, 2:27 AM
Wayne Porter
Wayne Porter - avatar
2 Answers
+ 1
have you set the PATH variable to the directory where your JDK is in? for compiling java programs, type this at the cmd window after rhe PATH has been set, and you are in the directory where "ExampleProgram.java" is in- javac ExampleProgram.java
9th Dec 2016, 11:03 AM
Aditya
Aditya - avatar
+ 1
yes I have, I've just recently been givin the advice to change the jre path, so I'm going to try that
9th Dec 2016, 3:59 PM
Wayne Porter
Wayne Porter - avatar