Go Back   Java Programming Forums > Learning Java > Java Code Snippets and Tutorials


Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 21-02-2009, 11:41 AM
JavaPF's Avatar
mmm.. coffee
 
7 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,581
Thanks: 103
Thanked 93 Times in 86 Posts
JavaPF is someone you want to know!JavaPF is someone you want to know!JavaPF is someone you want to know!

I'm feeling Stressed
Post Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

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:

http://www.javaprogrammingforums.com...tcut-keys.html



__________________
Don't forget to add syntax highlighted code tags around your code: [highlight=Java] code here [/highlight]

Forum Tip: Add to peoples reputation () by clicking the button on their useful posts.
Reply With Quote Share this thread on Facebook
The Following 2 Users Say Thank You to JavaPF For This Useful Post:
javapenguin (05-06-2010), Json (22-04-2010)
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 12-03-2009, 07:36 AM
Junior Member
 

Join Date: Jan 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
ss13 is on a distinguished road
Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

You are very good
Reply With Quote
  #3 (permalink)  
Old 12-03-2009, 09:03 AM
Junior Member
 

Join Date: May 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
sundarjothi is on a distinguished road
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
Reply With Quote
  #4 (permalink)  
Old 12-03-2009, 09:07 AM
JavaPF's Avatar
mmm.. coffee
 
7 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,581
Thanks: 103
Thanked 93 Times in 86 Posts
JavaPF is someone you want to know!JavaPF is someone you want to know!JavaPF is someone you want to know!

I'm feeling Stressed
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
__________________
Don't forget to add syntax highlighted code tags around your code: [highlight=Java] code here [/highlight]

Forum Tip: Add to peoples reputation () by clicking the button on their useful posts.
Reply With Quote
  #5 (permalink)  
Old 09-04-2010, 04:42 AM
Junior Member
 

Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
steven444 is on a distinguished road
Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

thanks for the informative post javaPF
__________________
steven
Reply With Quote
  #6 (permalink)  
Old 20-04-2010, 09:25 AM
Junior Member
 

Join Date: Apr 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Prarthana is on a distinguished road

I'm feeling Happy
Default Re: Beginners Eclipse Tutorial. How to run your first Eclipse Java Application.

Hey its really helpful
Thanks a lot
Reply With Quote
  #7 (permalink)  
Old 26-08-2010, 06:30 PM
Member
 
1 Highscore

Join Date: Jul 2010
Posts: 108
Thanks: 9
Thanked 11 Times in 10 Posts
Brt93yoda is on a distinguished road
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
Reply With Quote
Reply

Tags
eclipse tutorial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.javaprogrammingforums.com/java-code-snippets-tutorials/253-beginners-eclipse-tutorial-how-run-your-first-eclipse-java-application.html
Posted By For Type Date
Java Programming Forums - JavaProgrammingForums.com This thread Refback 27-02-2009 04:22 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
WAR file creation in Eclipse JEE katty Java IDEs 5 21-05-2009 02:45 PM
help us in eclipse basic codes bil_Imma AWT / Java Swing 1 24-01-2009 10:02 PM
Connecting to Oracle from within Eclipse kairamr Java IDEs 1 12-11-2008 09:16 PM
struts & database for eclipse kirman Java IDEs 2 17-10-2008 12:26 PM
Useful Eclipse Shortcut Keys Flash Java Code Snippets and Tutorials 1 08-08-2008 07:10 PM


100 most searched terms
Search Cloud
2d arraylist java actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener in java addactionlistener java applications of oops could not create java virtual machine xp double format java double to int double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java java 2d arraylist java actionlistener java addactionlistener java convert list to map java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming help java sendkeys java two dimensional arraylist java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics two dimensional arraylist java writing ipod apps

All times are GMT. The time now is 09:19 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.