Compile and Run Java Programs In Notepad++

Опубликовано: 06 Август 2026
на канале: Chris Amit
1,955
22

In this video tutorial, you will learn how to compile and execute Java programs in Notepad++. You will need to have Java JDK and JRE installed to run Java programs. Additionally, we will be using the NPPExec plugin in Notepad++ to simplify the process. We will be working with two Java programs - the classic HelloWorld.java and another program that reverses each word in a string. By the end of this tutorial, you'll have a better understanding of how to use Notepad++ to run and test Java programs..

TIMESTAMP
Steps (with Timestamps)
00:00 Demo of compiling and running Java program from Notepad++.
00:41 Java Development Kit and Java Runtime Environment Requirements
03:57 Install NPPExec Plugin in Notepad++
05:15 Add a script for Compiling and Running Java
11:48 Add Menu Item for NPPExec script
13:32 Quick Demo with HelloWorld.java and reverseWordInMyString

Here is the NPPExec Script that we used in this video.
// save program
NPP_SAVE
// change directory
cd "$(CURRENT_DIRECTORY)"
// compile
"C:\Program Files\Java\jdk1.8.0_301\bin\javac.exe" $(FILE_NAME)
// execute
"C:\Program Files\Java\jdk1.8.0_301\bin\java.exe" -cp "$(CURRENT_DIRECTORY)" "$(NAME_PART)"

#CompileRunJavaProgram #NotepadCompileRunJava

---

🚩 Checkout My other playlists 🚩
Notepad++ HTML tutorials,    • NOTEPAD++ HTML TUTORIALS for BEGINNERS - P...  
Notepad++ tips and tricks,    • Notepad++ TUTORIALS FOR BEGINNERS - Playlist  
Notepad++ Themes, Fonts, Look and Feel,    • Notepad++ Themes, Dark Mode, Fonts, Icons ...  
Notepad++ One Minute Challenge,    • Notepad++ Tips & Tricks  

---
🚩 please LIKE or SUBSCRIBE.
🚩 Please COMMENT If You Like To See Any Video On Specific Topic


Music Credits:
––––––––––––––––––––––––––––––
Track: Our Leaves in the Breeze — Artificial.Music [Audio Library Release]
Music provided by Audio Library Plus
Watch:    • Our Leaves in the Breeze — Artificial.Musi...  
Free Download / Stream: https://alplus.io/our-leaves-breeze
––––––––––––––––––––––––––––––