|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 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.
Create a class named as
Calculator. This is just an
example. You can create any class you want to create.
Save class Calculator as a Java
file. Notice that it must be in Java format. Otherwise, it will fail to compile.
Name it as Calculator.java on
the desktop. Alternatively, you can save it anywhere you want.
Open Plugins in the menu bar. Then choose "Show Plugin Manager".
Find Nppexec and click it in the options list-box.
Restart Notepad according to
the instructions provided by
In the menu bar, choose
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).
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|
|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
Nairaland - Copyright © 2005 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 40