Home > Development Tools > notepad > How to compile and run Java with Notepad++

How to compile and run Java with Notepad++

藏色散人
Release: 2020-05-13 16:10:14
forward
4304 people have browsed it

The following tutorial column of notepad will introduce to you how to compile and run Java in Notepad. I hope it will be helpful to friends in need!

How to compile and run Java with Notepad++

Notepad Compile and run Java

1. Install Notepad.

2. Install the plug-in.

Notepad's menu bar: Plug-in -> Plug-in Management -> Available, check NppExec and click "Install".

3. Add compilation and execution commands.

After installing NppExec, click Plug-in-> NppExec-> Execute...

How to compile and run Java with Notepad++

##Enter the compile execution code in the window below, click OK save, then press F6 to execute Java code.

NPP_SAVE
 
javac -encoding UTF-8 "$(FULL_CURRENT_PATH)"
 
java -cp  "$(CURRENT_DIRECTORY)" "$(NAME_PART)"
Copy after login

How to compile and run Java with Notepad++

For more notepad technical articles, please visit the

notepad usage tutorial column!

The above is the detailed content of How to compile and run Java with Notepad++. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why is my hosts notepad blank?
From 1970-01-01 08:00:00
0
0
0
Teacher Notepad++ how to make prompt code
From 1970-01-01 08:00:00
0
0
0
Notepad++ will not use
From 1970-01-01 08:00:00
0
0
0
The contents of hosts notepad are incorrect
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template