I'm now ready to study Java again. It has been years since last time I touched it, and will rework with it sooner.
First of all, I have to create a basic environment for developping Java.
| OS |
Windows 7 |
| Java Version |
1.7.0 |
| Source code editor |
Notepad++ |
Prepare a simple IDE with Notepad++
To enbale "Auto Complete"
Go to menu "Settings >Preferences", click tab "Backup
and Auto Complete", then configure as:
Download Notepad++ plugin "NppExec"
Go to menu "Plugins>Plugin Manager >Show Plugin Manager", then find "NppExec" in tab "Available"
andInstall.
Or just go to http://sourceforge.net/projects/npp-plugins/files/
and download & install. (may be very slow to you)
Or go to http://download.csdn.net/download/wxqee/5023600 (my csdn shared
resources).
Configure "NppExec" to compile & run a single Java file.
Go to menu "Plugins>NppExec>Execute...", then configure the textarea as a new script with the following
scripts:
cd $(CURRENT_DIRECTORY)javac $(FILE_NAME)java $(NAME_PART)
Then "Save..." as a script.
Try a demo "Hello world".
Create a java scource file "Main.java" anywhere, as
import java.io.*;public class Main { public static void main (String[] args) { System.out.println("Hello World"); }}
Then go to menu "Plugins > NppExec > Execute...",
choose the script that just created, and click "OK", to see the output down in "Console"..
Oh, yeah. It works!!
TODOs:
1.Object-Relational Mappting
2.JAXB
Note is at EOF