Home » Tutorial

Set Up JDK in Eclipse

Written By: techieDan on October 19, 2009 6 Comments

Java enthusiasts and coders and programmers alike, how many of you are using Eclipse as your IDE to do your codes. For those in the Java field but still trying to find a good IDE, I would recommend Eclipse. Just so happens that Eclipse codename their newest version with Galileo. Instead of versifying their release, it’s now codenamed.

Here’s the part of a Welcome Screen once Eclipse is freshly installed.

Eclipse Galileo Java

As a Techie, TechieDan will show how to setup your Eclipse to run with your JDK. By default your IDE will try to run with your JRE, but by doing so you will be limited with the stuffs you can do without the whole JDK package.

How to setup your JDK in Eclipse IDE.

Eclipse Menu Preferences

Eclipse JRE settings

Include JDK 6 Eclipse

  1. From the above screen, once Eclipse is started up, go to Windows Option > Preferences.
  2. Look for Java > Installed JREs.
  3. Click on Add > Next (Standard VM).
  4. Then Locate Directory of your installed JDK. Then clicked finish.
  5. Finally the screen will return back to the selection of JREs, now select your JDK option.

As can be seen from above, TechieDan is using JDK 6 to compile and run the Java programs.

Why use Eclipse?

  • It’s free
  • It’s open source – additional programmers from all walk of life.
  • It integrates with lots of other plugin
  • Other than Java, there’s also an Eclipse IDE for C and PHP

Now that I have setup my Eclipse, what else should I do?

Well, this is where you should start learning how to write and begin writing a simple Hello World java program.

Mentioning about Eclipse, where to get this marvelous IDE?

The only place to get it all is at Eclipse’s main website. To download the IDE go to THIS LINK.

Related Posts with Thumbnails

Tags: , ,

Digg this!Add to del.icio.us!Stumble this!Add to Techorati!Share on Facebook!Seed Newsvine!Reddit!Add to Yahoo!

6 Responses to “Set Up JDK in Eclipse”

  1. Doug Schaible Sr. says on: 10 September 2010 at 12:39 pm

    I screwed around for 3 days trying to figure out what I’d done wrong with my new Eclipse Install until I found this!!  Fixed it in about 3 min.!!!!!

  2. David says on: 28 September 2010 at 2:02 pm

    Great Post. …. Thanks … :)

  3. Donal says on: 12 January 2011 at 7:43 am

    You my man are a life saver, I previously used JCreator and had no resources on how to setup Eclipse. Now thanks to this I’m finally setup.

  4. vishnu says on: 9 July 2011 at 3:43 am

    i cannot add the jdk as an error message showing “Target is not a JDK Root. Java executable was not found” is generated.what can i do.

    • techieDan says on: 12 July 2011 at 1:52 am

      You haven’t installed JDK if I am not mistaken. Do check your JDK was properly installed.

      • Saty says on: 19 July 2011 at 4:24 am

        Hi, even I am getting the same error as Vishnu saying “Target is not a JDK Root. Java executable was not found”  I have checked in the java directory in c:/program files and it shows two jdk directories  
        C:\Program Files\Java\jdk1.6.0_17
        C:\Program Files\Java\jdk1.6.0_24
        I assume I have the jdk but it still shows that error. Am I missing something? 

Leave a Reply:

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  Copyright © 2009 TechieDan, All rights reserved.| Powered by WordPress