helloopensource

 

java_e

Page history last edited by Paulo 1 yr ago
 

Hello Java using Eclipse

This Tutorial will show you how to download, install and write a simple application using Eclipse for Java.

 

Main Learning's

After following this tutorial you will learn how to:
  • download and install Eclipse for Java
  • Create a java project
  • Create and run a java class
 

Versions used:

  • Eclipse SDK 3.3.2
  • JDKversion 1.6.0_5

 

Assumptions:

 

 

The JDK is properly installed

 

 

Tutorial Steps:

  1. Install Eclipse for Java
    1. Go to the Eclipse downloads web site: http://www.eclipse.org/downloads/index.php
    2. Download Eclipse IDE for Java Developers
    3. e.g., eclipse-java-europa-winter-win32.zip
    4. Extract eclipse-java-europa-winter-win32.zip to C:\Program Files\
  2. Open Eclipse
    1. Double click on C:\Program Files\eclipse\eclipse.exe
    2. Select Eclipse workspace (in my case c:\codebase)
    3. Recommendation: create a desktop shortcut to eclipse.exe and rename it to Eclipse
    4. Java - Eclipse
  3. Create a Java Project
    1. File -> New -> Java Project (name it helloWorld)
  4. Create a Java Class
    1. File -> New -> Class
    2. Select package name - org.helloopensource
    3. Select Class name – HelloWorld
    4. Select – Create public main method
    5. Click on Finish
    6. Add System.out.print("Hello World"); to the main method
  5. Run HelloWorld.java
    1. The output is on the console window

 

 

 

Comments (0)

You don't have permission to comment on this page.