In this tutorial I will show you how to use the Eclipse IDE for the first time.
Firstly, download the latest version of Eclipse.
Eclipse Downloads
Here is a direct link to the download:
Eclipse downloads - mirror selection
Once its downloaded & installed, double click the Eclipse icon to start.
http://www.javaprogrammingforums.com...tutorial/1.jpg
Because this is your first time running Eclipse, it will take a while to load as it sets up the environment.
http://www.javaprogrammingforums.com...tutorial/2.jpg
Once Eclipse is fully loaded you will see the Welcome Screen. You can close this straight away..
http://www.javaprogrammingforums.com...tutorial/3.jpg
OK now lets start our first application.
Click File > New > Java Project
http://www.javaprogrammingforums.com...tutorial/4.jpg
The 'Create a Java Project' box will popup.
Give your Project a name. In this case I have named it 'EclipseTutorial'
http://www.javaprogrammingforums.com...tutorial/5.jpg
Click FINISH.
You have now setup your first project which will appear in the Package Explorer window.
http://www.javaprogrammingforums.com...tutorial/6.jpg
Before we can begin to write any code, we must first add a Package which will contain all our project files.
Make sure your new project is highlighted and click the 'New Java Package' icon.
http://www.javaprogrammingforums.com...tutorial/7.jpg
Give your package a name relevant to your project.
http://www.javaprogrammingforums.com...tutorial/8.jpg
Click FINISH
Now your Package has been created we need to add a Class file. Make sure the Package is highlighted by clicking it once and then click the 'New Java Class' icon.
http://www.javaprogrammingforums.com...tutorial/9.jpg
The Create a New Java Class box will popup.
Give your Class a name and tick the public static void main(String[] args) box.
http://www.javaprogrammingforums.com...utorial/10.jpg
Your Class will now appear in the Workspace and you are ready to start writing code!
http://www.javaprogrammingforums.com...utorial/11.jpg
Here I have wrote a simple Hello World application which will print the words into the console.
http://www.javaprogrammingforums.com...utorial/12.jpg
To Run your Java project. Right click the 'TutorialClass.java' file in the Package Explorer window, then click Run As > Java Application
http://www.javaprogrammingforums.com...utorial/13.jpg
The output will now be displayed in the console.
http://www.javaprogrammingforums.com...utorial/14.jpg
Congratulations! You have just wrote your first Java application in Eclipse!!
Once you are familiar with Eclipse, you will find this next thread very helpful:
http://www.javaprogrammingforums.com...tcut-keys.html