+ 1
error in the program..
when I compile java program with code javac youtube.java and then type dir it doesnt show me .class file. can you please help me in this.. Thank you..
3 Answers
+ 1
thank you both of you.. I will try..
0
Kindly check your java path in advanced setting environment variable.
Once a java programme compliled successfully it always create class file where it your java file resides
0
in the cmd type "javac" (without quotes) and hit enter. If it returns some long code type stuff then JDK is installed properly and the class should be created when you compile the code
if not, then the cmd will return javac is not recognized as an internal or external batch command (somewhat like this). In this case try to install the JDK and set the environment variable properly