Reference article: http://blog.csdn.net/mdyyzc/article/details/7653096
Sometimes it takes a long time to experiment with a small piece of code to open eclipse (Computer configuration is low, forgive me). So, notepad++ with plug-ins to build a Java fast-developing IDE environment you deserve.
First download this article protagonist--nppexec plugin,:
Http://www.softpedia.com/get/Office-tools/Text-editors/NppExec.shtml
Plugin Manager for #不知道出于什么原因使用notepad + + has been unable to install nppexec, so be honest about downloading and installing it.
Installation method:
Open the downloaded zip, unzip the NppExec.dll into the notepad++ installation directory plugins, and then restart notepad++, in the "Plugins" menu you can see nppexec.
Then write the following code:
Public class HelloWorld { publicstaticvoid main (string[] args) { System.out.println ("Hello, World.") ); }}
Next, after compiling, press the F6 key and the Execute dialog box appears below. We enter the batch code in the popup dialog box as follows:
" $ (current_directory) " #编译*"$ (file_name)"#执行*-cp" $ (name_part)"
Then, click OK, the final effect is as follows:
The console is the result of the Java code compile & run that we wrote.
Make notepad++ a Java rapid development IDE