Compile and Run Java in Notepad++ [2023] | Notepad++ and JAVA 19 | How to run Java in Notepad++

preview_player
Показать описание
In this video, I have explained how to use Notepad++ for creating and executing a Java program. Also, you'll find how to install the plugin nppexec for compiling and running a java program in notepad++.

Script:
cd $(CURRENT_DIRECTORY)
javac $(FILE_NAME)
if $(EXITCODE)!=0
exit
endif
java $(NAME_PART)

How to install Notepad++? Follow this link

How to Download Java 17? Follow this link

________________________________________________
✅Subscribe to my Channel to learn more about Computer Programming, computer tools, and technologies.
Thanks for watching my videos till the end, if you like my work please do Like, Comment, and Share!!
-----------------------------------------------------------------------
Channel Subscription:
------------------------------------------------------------------------
🎥 Tools I used for recording
-----------------------------------------------------------------------
C O N N E C T W I T H M E !
-----------------------------------------------------------------------

#javatutorialforbeginners #firstprograminjava #notepad #javaprograminnotepadplusplus #howtorunprograminjava #javatutorial #javaprogramming #javaprogrammingtutorial #javabasicsforbeginners #codewithsunita

run java using notepad++,java using notepad++,java in notepad++,run java in notepad++,compile and run java program in notepad++,how to compile java program in notepad++,run java program in notepad++,compile java program in notepad++,compile java notepad++,compile and run java program in notepad++,how to run java in notepad++,how to run java code in notepad++,how to run java program in notepad++,how to run program in notepad++,compile java in notepad++,code with sunita
Рекомендации по теме
Комментарии
Автор

Thank you for the explanation mam! But could you please specify what changes you made to the script after encountering the error in the console? I pasted the script as mentioned in the description but still getting the following error:

Current directory:
javac new1.java
Process started (PID=18248) >>>
<<< Process finished (PID=18248). (Exit code 0)
IF: $(EXITCODE)!=0
ENDIF
java new1
Process started (PID=13692) >>>
Error: Could not find or load main class new1
Caused by: new1
<<< Process finished (PID=13692). (Exit code 1)
READY

shaswatichakraborty
Автор

Is the NPP_SAVE script being added useful in that setup?

keylanoslokj
Автор

CD:
Current directory:
javac second.java

; about to start a child process: "javac second.java"
CreateProcess() failed with error code 2:
The system cannot find the file specified.

IF: $(EXITCODE)!=0
EXIT


READY





This error is showing what to do?

DilSe.Weddings
Автор

C language ka same pattern hain kya mam?

sakshiborade-bmtf
Автор

Ma'am it's coming like failed with error code 2 ...I've checked the script also but it's still like that

User_-qggm
Автор

Mam script code nahi mila maine screen se dekhkar likha. but Thank you .

Thdevendra