Factsheet
java - Setting JDK in Eclipse - Stack Overflow
java - Which Eclipse IDE version to choose? - Stack Overflow
eclipse - How do you install JDK? - Stack Overflow
Which Java is Eclipse using? - Stack Overflow
Videos
Has Eclipse stagnated? Is there any backlash from Eclipse against competitors like Intellij or VS Code?
It is not even mentioned anymore. Is the project dead?
You manage the list of available compilers in the Window -> Preferences -> Java -> Installed JRE's tab.
In the project build path configuration dialog, under the libraries tab, you can delete the entry for JRE System Library, click on Add Library and choose the installed JRE to compile with. Some compilers can be configured to compile at a back-level compiler version. I think that's why you're seeing the addition version options.
Some additional steps may be needed to set both the project and default workspace JRE correctly, as MayoMan mentioned. Here is the complete sequence in Eclipse Luna:
- Right click your project > properties
- Select βJava Build Pathβ on left, then βJRE System Libraryβ, click Editβ¦
- Select "Workspace Default JRE"
- Click "Installed JREs"
- If you see JRE you want in the list select it (selecting a JDK is OK too)
- If not, click Searchβ¦, navigate to Computer > Windows C: > Program Files > Java, then click OK
- Now you should see all installed JREs, select the one you want
- Click OK/Finish a million times
Easy.... not.
See Compare Eclipse Packages for a nice chart
What I would like to do is use Eclipse for (...)
The Eclipse IDE for Java EE Developers allows to do what you're asking for out of the box.
Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup.
Both would work, although it would be simpler to just get directly the Eclipse IDE for Java EE Developers (especially if you don't know exactly what plugin(s) you're looking for). Personally, I don't use the version you can get from the repository but download Eclipse from the official website and install it in user mode.
To setup Eclipse to use the JDK you must follow these steps.
1.Download the JDK
First you have to download the JDK from Suns site. (Make sure you download one of them that has the JDK)
2.Install JDK
Install it and it will save some files to your hard drive. On a Windows machine this could be in c:\program files\java\jdk(version number)
3.Eclipse Preferences
Go to the Eclipse Preferences -> Java -> Installed JREs
4.Add the JDK
Click Add JRE and you only need to located the Home Directory. Click Browse... and go to where the JDK is installed on your system. The other fields will be populated for you after you locate the home directory.
5.You're done
Click Okay. If you want that JDK to be the default then put a Check Mark next to it in the Installed JRE's list.
You don't need a separate compiler, eclipse already compiles the application for you. What you probably want to do is to create an "executable" JAR file, which you can do in eclipse by selecting File->Export->Runnable JAR file.
Note, however, that the resulting JAR file is not a "real" (i.e. Windows binary) executable - it still needs a JRE installed on the target computer. There isn't really a way to create windows binaries; that's not how Java works. On the upside, it will work without recompilation on a Linux or MacOS machine (if it has a JRE installed).
While you are in Eclipse:
- Open Help -> About Eclipse
- click on Installation Details
- select the Tab Configuration
search for the entry
eclipse.vm=
there should be the path to the used JRE.
If you want to know
where is Java located in your system, run it in terminal
whereis java.which Java is used in your system, run it in terminal
which java.what Java version is used by default, run it in terminal
java --versionwhich JDK is used in Eclipse, refer to
Project->Properties->Java Compilerwhich JRE is used in Eclipse, refer to
Windows->Preferences->Installed JREs