Subscribe to rss rss

Set Up JDK in Eclipse

Posted by : | On : 19-10-2009 | Comments 21

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

(021) Comments

  1. Doug Schaible Sr. said on

    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 said on

    Great Post. …. Thanks … 🙂

  3. Donal said on

    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 said on

    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 said on

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

      • Saty said on

        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? 

  5. Thushan said on

    Thank you very much, helped a lot! 🙂

  6. Prasanth said on

    thank you so much..

  7. sibananda dash said on

    thanks …………i just wake up

  8. Vinay Kumar said on

    @TECHIEDAN , the info you provided  was really helpful. Thanks a lot

  9. Ines said on

    Your explanation is very well, but what can I do, if do not have any installed JRE’s? I don’t even find some downloads or installation guides, if this is missing. And everytime I try to define a new standard VM, it says “Target is not a JDK Root. Java executable was not found” (like others commented here before) although i pick java->javavirtualmachine->1.6.0.jdk as JRE home folder.
    My environment is Mac OS 10.6.8. 

    Do you know what is wrong? 

    • techieDan said on

      Do try this out. Does Mac have permission settings set up. Does the JDK folder has write access?

      These might be reasons if you are not the administrator of your own PC.

  10. Mayank Satnalika said on

    Thanks a lot.It really works.Absolutely flawlessly.

  11. Lillian said on

    Thank you this was a big help! 🙂

  12. Peabody said on

    Nice job Eclipse.  Programmers understand the distinction between JRE and JDK.  They are two very different things.  Why the heck would Eclipse use the terminology ‘JRE’ when you’re trying to configure a JDK?

  13. S Nikunj said on

    This was really useful thanks alot 🙂

  14. porn said on

    Just desire to saү your aгticle is as amazing. The claritү on your publish
    is just cool and that i can assume yoս’re an expert in this subject.
    Fine together with your permіssion ⅼet me to ѕеize your
    RSS feed to keep updated with imminent ρost. Thanks 1,000,000 and
    please carry on thᥱ enjoyaЬle work.

  15. Hі, I do believe this is an excellent web site.
    I stumbledupon it 😉 I will rеturn once aǥain since I booк marked it.
    Money and freedom is the best way to change, may you be rich and contіnue to help other people.

  16. หนังโ said on

    It’ѕ very simple to find out any topic on net as compared to textbоoқs, as I found thіs post at this web site.

  17. Hi, all tһe time i usеd to check webрage рosts һere earⅼy in the break of day, since
    i like to learn morе and more.

  18. คลิบxxx said on

    Ꭲrսly no matter if someone doeѕn’t know then its up to other users
    that they will аsѕіst, so here it ocϲurs.

Write a comment