Can l program Java with notpad | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can l program Java with notpad

22nd Aug 2019, 9:06 PM
Bose Blessing Olu-Akinsuroju
Bose Blessing Olu-Akinsuroju - avatar
5 Answers
+ 5
With command line compilation, it's possible.
23rd Aug 2019, 2:00 AM
Sonic
Sonic - avatar
+ 3
Of course you can write Java programs with notepad, but you have to compile them manually from the command prompt with the Java compiler „javac“.
22nd Aug 2019, 9:25 PM
Michael
Michael - avatar
+ 3
Yeah. To run the code: 1. Write your code 2. Save it as myCode.java 3. Open CMD and navigate to the location of your java file 4. Type in "javac myCode.java" 5. Finally type in "java myCode". This will run your code. But it's easier to use an IDE like Eclipse or Netbeans which does all this process automatically for you. First of all you need to install JRE and JDK in both cases.
23rd Aug 2019, 3:29 AM
Tashila Pathum
Tashila Pathum - avatar
+ 2
Yes we can. And it's the best way to learn java without using any IDE. Just set up your path in environment. And run your code in cmd. Compile it and run it. It's fun to use. If you have any doubt plase I suggest you to Youtube it. It will help you a lot.
23rd Aug 2019, 10:30 AM
Krishnanshu Dey
Krishnanshu Dey - avatar
+ 1
Eh, you need to compile the file; but I don't know if notpad can compile java files.
22nd Aug 2019, 9:08 PM
Airree
Airree - avatar