₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,158 members, 8,510,446 topics. Date: Friday, 30 October 2026 at 12:08 PM

Toggle theme

How To Compile And Run Java Program By Notepad - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › How To Compile And Run Java Program By Notepad (1050 Views)

1 Reply

How To Compile And Run Java Program By Notepad by Holuwarthomisin(op): 12:51pm On Sep 04, 2019
Notepad++ is a free text editor and source code editor. It is very small, just 7.6MB. This article instructs you in how to compile and run Java programs using Notepad++. It is an effective method to compile and run your Java program easily and at any
moment, without having to resort to using complex software like Eclipse or NetBeans.
Steps
1
Create a class named as
Calculator. This is just an
example. You can create any class you want to create.
2
Save class Calculator as a Java
file. Notice that it must be in Java format. Otherwise, it will fail to compile.
3
Name it as Calculator.java on
the desktop. Alternatively, you can save it anywhere you want.
4
Open Plugins in the menu bar. Then choose "Show Plugin Manager".
5
Find Nppexec and click it in the options list-box.
6
Restart Notepad according to
the instructions provided by
the popup.
7
In the menu bar, choose
Plugin->Nppexec->Execute.
8
In the command line, type: cd C;\Users\hhh\Desktop
\Calculator.java, javac Calculator, java Calculator, and press enter after each command. The format means cd $(CURRENT_DIRECTORY) , javac $(FILE_NAME) ,java $(NAME_PART).
9
Click OK , the program will
compile and run. You can see
the demonstration. It is a cool calculator, right?
Re: How To Compile And Run Java Program By Notepad by ABCthings: 11:00pm On Sep 04, 2019
huh
1 Reply

I Need Help Using Notepad++ • What Was Used To Compile The Code That Was Used In Creating A Compiler? • Notepad Virus : Exile/destroy Pc Using Batch • 2 • 3 • 4

Do I Have To Pay To Pitch At Techpoint Build? • Free Training For Junior And Aspiring Web/android Developers • Smadav Pro Full Version Download