0
I don't really understand how to compile the code in the command prompt
9 Answers
+ 2
After installing Java, ensure you already set CLASSPATH. To compile the code, use command javac. You can see how to install Java and set CLASSPATH in
http://javabasictoadvanced.blogspot.co.id/2016/01/installing-java.html and how to compile and run from command prompt in http://javabasictoadvanced.blogspot.co.id/2016/01/hello-world-program.html
0
Thanks but I have already set the class path
0
Have you tried "javac" command to compile the code?
0
Yes I have but it keeps saying could not recognize
0
Type "java -version" in command prompt and what is the result?
0
@Aula Muttaqin I was typed java-version but bush show command not found . What should I do?
0
@Tay Zar Mya Nyein Aung it's not "java-version" but "java -version" (using space after "java"). java -version will show Java version you already installed. If the result is 'java' is not recognized, it means you haven't installing Java or Java is not installed correctly.
0
Which is the best book for learning Java ?
0
@rik you can learn Java from basic to advanced in http://javabasictoadvanced.blogspot.com