+ 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..

12th Jul 2016, 8:23 PM
Mikin Patel
Mikin Patel - avatar
3 Answers
+ 1
thank you both of you.. I will try..
13th Jul 2016, 8:44 PM
Mikin Patel
Mikin Patel - avatar
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
13th Jul 2016, 4:22 AM
Thirugnanasambandhamurthy Arumugam
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
13th Jul 2016, 8:31 PM
Vamsi Manepalli
Vamsi Manepalli - avatar