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

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

  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)


  3. #2
    Junior Member ss13's Avatar
    Join Date
    Jan 2009
    Posts
    6
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    You are very good

  4. The Following User Says Thank You to ss13 For This Useful Post:

    kennedy10 (June 1st, 2013)

  5. #3
    Junior Member
    Join Date
    May 2008
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    hi,
    Is there any eclipse plug in for struts framework ?

    thanks


    sundar

  6. The Following User Says Thank You to sundarjothi For This Useful Post:

    kennedy10 (June 1st, 2013)

  7. #4
    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

    Thumbs up Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Quote Originally Posted by sundarjothi View Post
    hi,
    Is there any eclipse plug in for struts framework ?
    thanks
    sundar
    Hey sundar,

    Yeah there are a wide range of plugins for Eclipse.

    Developing Struts with Easy Struts for Eclipse

    Struts Generator 2.0 released :: Eclipse Plugin Central :: Eclipse plugins resource center and marketplace for Eclipse and Plugin Ecosystem

    StrutsTools - Struts Wiki
    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.

  8. The Following User Says Thank You to JavaPF For This Useful Post:

    kennedy10 (June 1st, 2013)

  9. #5
    Junior Member
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    thanks for the informative post javaPF
    steven

  10. The Following User Says Thank You to steven444 For This Useful Post:

    kennedy10 (June 1st, 2013)

  11. #6
    Junior Member
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Hey its really helpful
    Thanks a lot

  12. The Following User Says Thank You to Prarthana For This Useful Post:

    kennedy10 (June 1st, 2013)

  13. #7
    Member
    Join Date
    Jul 2010
    Location
    Washington, USA
    Posts
    307
    Thanks
    16
    Thanked 43 Times in 39 Posts

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    You can also right-click the source and click run as>Java ap or click the play button

  14. The Following User Says Thank You to Brt93yoda For This Useful Post:

    kennedy10 (June 1st, 2013)

  15. #8
    Junior Member
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Thank you so much for this EASY tutorial. It truly helped out.

    Awesome!

  16. The Following User Says Thank You to ultramanjones For This Useful Post:

    kennedy10 (June 1st, 2013)

  17. #9
    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

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Quote Originally Posted by ultramanjones View Post
    Thank you so much for this EASY tutorial. It truly helped out.

    Awesome!
    No problem. Glad I could help

    Welcome to the forums by the way!
    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.

  18. The Following User Says Thank You to JavaPF For This Useful Post:

    kennedy10 (June 1st, 2013)

  19. #10
    Junior Member
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    this was very useful thank u very much.. look am a physics student and i have this homework: physics java applet.. now i know very little about java ana need help.. where can i get a code for a projectile applet for example. please help

  20. The Following User Says Thank You to newtoprogramming For This Useful Post:

    kennedy10 (June 1st, 2013)

  21. #11
    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

    Thumbs up Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Quote Originally Posted by newtoprogramming View Post
    this was very useful thank u very much.. look am a physics student and i have this homework: physics java applet.. now i know very little about java ana need help.. where can i get a code for a projectile applet for example. please help
    Please read: How To Ask Questions The Smart Way

    Then post this question in the correct forum. We will help you move forward just as long as you show us you have put effort into doing this assignment yourself. Thank you.
    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.

  22. The Following User Says Thank You to JavaPF For This Useful Post:

    kennedy10 (June 1st, 2013)

  23. #12
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    To date, I've always used NetBeans IDE and I'm just wondering, would you recommend Eclipse over NetBeans baring In mind I use Glass-fish container with it (not sure if Glass-fish is supported by Eclipse)?. Or would there be any significant advantages to switching from NetBeans to Eclipse?
    Thanks.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  24. The Following User Says Thank You to newbie For This Useful Post:

    kennedy10 (June 1st, 2013)

  25. #13
    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

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Hello newbie,

    It all depends the type of programming you do I guess. I first started in Eclipse because the applications I needed to write were command line based. There was no need for a GUI.
    As you know, NetBeans is great for creating GUIs. If I required GUIs, I probably would have started with NetBeans.

    I personally haven't used Glass-Fish so I'm not sure if it is supported within Eclipse or not. Eclipse is a very powerful IDE though with many plugins so chances are it is supported.

    It all boils down to what you are comfortable with. Always worth giving Eclipse a try
    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.

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

    kennedy10 (June 1st, 2013), newbie (February 3rd, 2011)

  27. #14
    Junior Member
    Join Date
    Jun 2011
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    THANK YOU THANK YOU THANK YOU!!!:-)

  28. The Following User Says Thank You to vhendry For This Useful Post:

    kennedy10 (June 1st, 2013)

  29. #15
    Member
    Join Date
    Mar 2010
    Posts
    271
    Thanks
    21
    Thanked 7 Times in 7 Posts

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Thanks for the post.

  30. The Following User Says Thank You to Melawe For This Useful Post:

    kennedy10 (June 1st, 2013)

  31. #16

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Here is a shortcut for beginners to use.

    write : main then CTRL+SPACE ----> gives u the full Main statement
    write: sysout then CTRL+SPACE -----> gives you System.out.println(); statement.

    if you need to know the function of a particular object then do. yourObject.(CTRL+SPACE)
    Warm Regards,

    weakprogrammer

    Code 2 Learn

  32. The Following 2 Users Say Thank You to weakprogrammer For This Useful Post:

    kennedy10 (June 1st, 2013), XelK (December 22nd, 2012)

  33. #17
    Junior Member
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

    Same tutorial, but in video YouTube format: Java basics tutorial

  34. The Following User Says Thank You to Jirka Pinkas For This Useful Post:

    kennedy10 (June 1st, 2013)

  35. #18
    Junior Member
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    Thanks a lot..it is really helpful

  36. The Following User Says Thank You to prince_gagan141 For This Useful Post:

    kennedy10 (June 1st, 2013)

  37. #19
    Junior Member
    Join Date
    May 2013
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    Thank you

  38. The Following User Says Thank You to saud For This Useful Post:

    kennedy10 (June 1st, 2013)

  39. #20
    Junior Member
    Join Date
    May 2013
    Location
    KC Missouri
    Posts
    1
    My Mood
    Cool
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    Thank you very much. You've got me off to a good start!

  40. The Following User Says Thank You to Henry88 For This Useful Post:

    kennedy10 (June 1st, 2013)

  41. #21
    Junior Member satyarlenka's Avatar
    Join Date
    May 2013
    Location
    Bhubaneswar IND
    Posts
    7
    My Mood
    Inspired
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    That was very helpful. Thanks

  42. #22
    Junior Member
    Join Date
    Dec 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    Thank you

  43. #23
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    Thankyou very much!

  44. #24
    Junior Member
    Join Date
    Jul 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Beginners Eclipse Tutorial. How to run first java application on Eclipse?

    Thanks for This.

  45. #25
    Junior Member codingninja's Avatar
    Join Date
    Aug 2014
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Subscribing. Thanks 😁

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