Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,652 members, 7,809,470 topics. Date: Friday, 26 April 2024 at 10:08 AM

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

What Was Used To Compile The Code That Was Used In Creating A Compiler? / Notepad Virus : Exile/destroy Pc Using Batch / How To Compile FORTRAN Program On Android (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)

Who Wants To Implement Chatbot In Their Market Strategy ?? / Why You Should Use Git And Github Early A Junior Developer / Become A Master In Programming By Viosam Tech

(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 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.