Check the installation
Create an empty Java project and place a simple Hello.java program there. (If you have difficulty creating a project, read a tutorial - open Help -> Help Contents and read the topic Java Development User Guide -> Getting Started -> Basic tutorial).
Hello.java
==========
public class Hello {
public static void main(String[] args) {
System.out.println("Hello");
}
}
- Troubleshooting: If you do not see "Package Explorer" tab on the left side, select from the menu Window->Open Perspective->Java (default) and Window->Show View->Package Explorer
- Eclipse compiles your Java files automatically (i.e. the menu option Project->Build Automatically is checked by default). This means that a new compiled file c:\temp\HelloProject\bin\mypackage\Hello.class is created, and it will be recompiled every time when Hello.java source file is changed in the Eclipse editor.
- Run the project by selecting from Eclipse menu: Run->Run As->Java Application - a "Hello" message should be displayed in the console window.