1. Install Java
  2. Run Eclipse

Install Java

admin/javaadmin2
  1. install J2EE : http://java.sun.com/javaee/downloads/index.jsp
  2. install JRE (J2SE runtime environment5.0 update 6 : 1.5.0_06) : http://www.java.com/ko/download/index.jsp
  3. check version : c:\>java -version (in command window)


Run Eclipse

Install eclipse
  1. download java eclipse at http://www.eclipse.org
  2. uncompress
  3. run eclipse.exe
  4. That's all!!

Run Hello World application (console) : reference http://kayii.egloos.com/76767/

  1. doubleclick eclipse.exe
  2. select a workspace
  3. click workbench
  4. create a project : select "File > New > Project" > next > Java > Java Project > next > type project name > finish
  5. create a class : rightclick project name > new > class > type class name > set modifier : public > set method : public static void main (String[] args) > Finish
  6. write codes : type "System.out.println("Hello, world!!");" at TODO list
  7. select run > run as > java application
  8. check console window

Run Hello World application (SWT - Standard Widget Toolkit) reference http://tong.nate.com/purplis/10466583

  1. open the java perspective : Window > Open perspective > java
  2. download SWT binary and source from http://eclipse.org/downloads/
  3. import SWT project File > Import > General > Existing projects into workspace --> This will create the org.eclipse.swt project
  4. create a java project : File > new > project > java > java project > next > project name > finish
  5. configure the java project : rightclick the project > properties > java build path > project tab > add org.eclipse.swt > ok
  6. create a class : file > new > class > enter class name > select the checkbox to create main() > finish
  7. 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();
  8. right click the project > source > organize imports
  9. save changes
  10. run as > SWT application