How to compile the first basic code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to compile the first basic code?

I entered the code into notepad, but unable to operate it into the command prompt and execute. How to execute it into command prompt or any other platform?

29th Mar 2017, 6:39 PM
Sarang Nafde
3 Answers
+ 21
for compilation on command prompt type javac filename.java
29th Mar 2017, 6:49 PM
Safiya Yunus
Safiya Yunus - avatar
+ 14
Any error messages? Just to be sure: Did you install jdk and set the path in the system environment?
29th Mar 2017, 6:50 PM
Tashi N
Tashi N - avatar
+ 2
for java the best thing you can do is installing eclipse. that will make life easy for you,
5th Apr 2017, 7:04 PM
El mostafa El kaderi Yemlahi
El mostafa El kaderi Yemlahi - avatar