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.
As a Techie, TechieDan will show how to setup your Eclipse to run with your JDK or in other words your JDK in Eclipse IDE. 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.
- From the above screen, once Eclipse is started up, go to Windows Option > Preferences.
- Look for Java > Installed JREs.
- Click on Add > Next (Standard VM).
- Then Locate Directory of your installed JDK. Then clicked finish.
- 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.
New Updates
Dated September 28th 2019, Java has come out Java 13. If you are still in Java 6, I would recommend to learn the next version which is Java 7 as it comprises of many changes to the language syntax.
An example would be the new try catch block and the new switch statement. These are the changes which helps the developer or programmer to actually complete their software development. Of course, it is recommended right now that anyone learning Java should learn at least Java 8. Most questions by companies for an interview now predominantly uses Java 8 as their base for questions.
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.
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.!!!!!
Great Post. …. Thanks … 🙂
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.
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.
You haven’t installed JDK if I am not mistaken. Do check your JDK was properly installed.
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?
Thank you very much, helped a lot! 🙂
thank you so much..
thanks …………i just wake up
@TECHIEDAN , the info you provided was really helpful. Thanks a lot
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?
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.
Thanks a lot.It really works.Absolutely flawlessly.
Thank you this was a big help! 🙂
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?
This was really useful thanks alot 🙂
Hello! I’m facing a problem , whenever I try to inherit my class from a pre-defined class for example Exception class ,or JFrame etc , I get this error message ‘The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files’ . ,All other programs run well otherwise
I have tried everything and every possible solution but it gives same error message , Please Help!
Hi Can you please guide me for jdk 1.6 linking with eclipse 03-2021. i see Target is not a jdk root. system library was not found.
Please download a lower version of Eclipse which is able to use Jdk 1.6. As eclipse 2021-03 only supports for Java 8 and above.