- Install Java
- Run Eclipse
admin/javaadmin2
- install J2EE : http://java.sun.com/javaee/downloads/index.jsp
- install JRE (J2SE runtime environment5.0 update 6 : 1.5.0_06) :
http://www.java.com/ko/download/index.jsp
- check version : c:\>java -version (in command window)
Install eclipse
- download java eclipse at http://www.eclipse.org
- uncompress
- run eclipse.exe
- That's all!!
Run Hello World application (console) : reference http://kayii.egloos.com/76767/
- doubleclick eclipse.exe
- select a workspace
- click workbench
- create a project : select "File > New > Project" > next > Java > Java Project > next
> type project name > finish
- create a class : rightclick project name > new > class > type class name
> set modifier : public > set method : public static void main (String[] args) > Finish
- write codes : type "System.out.println("Hello, world!!");" at TODO list
- select run > run as > java application
- check console window
Run Hello World application (SWT - Standard Widget Toolkit)
reference http://tong.nate.com/purplis/10466583
- open the java perspective : Window > Open perspective > java
- download SWT binary and source from http://eclipse.org/downloads/
- import SWT project File > Import > General > Existing projects into workspace
--> This will create the org.eclipse.swt project
- create a java project : File > new > project > java > java project > next > project name > finish
- configure the java project : rightclick the project > properties > java build path > project tab
> add org.eclipse.swt > ok
- create a class : file > new > class > enter class name > select the checkbox to create main()
> finish
- write java codes
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Hello world");
shell.open();
while(!shell.isDisposed()){
if(!display.readAndDispatch())
display.sleep();
}
display.dispose();
- right click the project > source > organize imports
- save changes
- run as > SWT application