Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,757,382 members, 6,553,073 topics. Date: Saturday, 23 October 2021 at 07:51 PM

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 (727 Views)

What Was Used To Compile The Code That Was Used In Creating A Compiler? / How To Compile FORTRAN Program On Android / Solutions To Java How To Program By Deitel, 9th Edition (2) (3) (4)

(1) (Reply)

How To Compile And Run Java Program By Notepad by Holuwarthomisin(m): 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

(1) (Reply)

Help! How To Make Your Java Or Python Program Become A Real Android App? / App Developer Needed In Ilorin / Mobile APP Developer Needed Urgently

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 40
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.