Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 25 of 25

Threaded View

  1. #1
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Post Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    Beginners Eclipse Tutorial

    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.



    Because this is your first time running Eclipse, it will take a while to load as it sets up the environment.



    Once Eclipse is fully loaded you will see the Welcome Screen. You can close this straight away..



    OK now lets start our first application.

    Click File > New > Java Project



    The 'Create a Java Project' box will popup.

    Give your Project a name. In this case I have named it 'EclipseTutorial'



    Click FINISH.

    You have now setup your first project which will appear in the Package Explorer window.



    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.



    Give your package a name relevant to your project.



    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.



    The Create a New Java Class box will popup.

    Give your Class a name and tick the public static void main(String[] args) box.



    Your Class will now appear in the Workspace and you are ready to start writing code!



    Here I have wrote a simple Hello World application which will print the words into the console.



    To Run your Java project. Right click the 'TutorialClass.java' file in the Package Explorer window, then click Run As > Java Application



    The output will now be displayed in the console.



    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:

    Useful Eclipse Shortcut Keys
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  2. The Following 7 Users Say Thank You to JavaPF For This Useful Post:

    javapenguin (June 5th, 2010), Json (April 22nd, 2010), kennedy10 (June 1st, 2013), lazaroplenac (May 10th, 2014), mvsoft (September 18th, 2012), pioneer (February 11th, 2011), XelK (December 22nd, 2012)


Similar Threads

  1. List of shortcuts key for Eclipse
    By Flash in forum Java JDK & IDE Tutorials
    Replies: 3
    Last Post: July 18th, 2013, 08:40 AM
  2. WAR file creation in Eclipse JEE
    By katty in forum Java IDEs
    Replies: 5
    Last Post: May 21st, 2009, 09:45 AM
  3. help us in eclipse basic codes
    By bil_Imma in forum AWT / Java Swing
    Replies: 1
    Last Post: January 24th, 2009, 06:02 PM
  4. Replies: 1
    Last Post: November 12th, 2008, 05:16 PM
  5. Website to study Struts framework
    By kirman in forum Java IDEs
    Replies: 2
    Last Post: October 17th, 2008, 07:26 AM

Tags for this Thread