0

I don't really understand how to compile the code in the command prompt

23rd Oct 2016, 11:11 PM
Obalolu Damilola Okeowo
Obalolu Damilola Okeowo - avatar
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
24th Oct 2016, 12:23 AM
Aula Muttaqin
Aula Muttaqin - avatar
0
Thanks but I have already set the class path
24th Oct 2016, 12:40 AM
Obalolu Damilola Okeowo
Obalolu Damilola Okeowo - avatar
0
Have you tried "javac" command to compile the code?
24th Oct 2016, 1:18 AM
Aula Muttaqin
Aula Muttaqin - avatar
0
Yes I have but it keeps saying could not recognize
24th Oct 2016, 1:22 AM
Obalolu Damilola Okeowo
Obalolu Damilola Okeowo - avatar
0
Type "java -version" in command prompt and what is the result?
24th Oct 2016, 2:25 AM
Aula Muttaqin
Aula Muttaqin - avatar
0
@Aula Muttaqin I was typed java-version but bush show command not found . What should I do?
24th Oct 2016, 6:36 AM
Tay Zar Mya Nyein Aung
Tay Zar Mya Nyein Aung - avatar
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.
24th Oct 2016, 7:26 AM
Aula Muttaqin
Aula Muttaqin - avatar
0
Which is the best book for learning Java ?
24th Oct 2016, 10:00 AM
rik
0
@rik you can learn Java from basic to advanced in http://javabasictoadvanced.blogspot.com
24th Oct 2016, 11:30 AM
Aula Muttaqin
Aula Muttaqin - avatar