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:
- Install Eclipse for Java
- Go to the Eclipse downloads web site: http://www.eclipse.org/downloads/index.php
- Download Eclipse IDE for Java Developers
- e.g., eclipse-java-europa-winter-win32.zip
- Extract eclipse-java-europa-winter-win32.zip to C:\Program Files\
- Open Eclipse
- Double click on C:\Program Files\eclipse\eclipse.exe

- Select Eclipse workspace (in my case c:\codebase)
- Recommendation: create a desktop shortcut to eclipse.exe and rename it to Eclipse
- Java - Eclipse

- Create a Java Project
- File -> New -> Java Project (name it helloWorld)
- Create a Java Class
- File -> New -> Class
- Select package name - org.helloopensource
- Select Class name – HelloWorld
- Select – Create public main method

- Click on Finish
- Add System.out.print("Hello World"); to the main method
- Run HelloWorld.java

- The output is on the console window

Comments (0)
You don't have permission to comment on this page.