您的位置:首页 > 编程语言 > Java开发

Notes for studing Java - Development preparation

2013-01-23 22:06 316 查看
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.

OSWindows 7
Java Version1.7.0
Source code editorNotepad++

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: