Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you get a jre installed in eclipse/springsource toolsuite?

For some reason, when I go to add a JRE to eclipse/sts and give it the location of the JDK 1.6.0_22, it says:

Target is not a JDK root. System library was not found.

I am giving it this folder, which is accurate and works for everything else: /opt/jdk1.6.0_22

But it is the jdk root. IDEA thinks so. Every other APP on the planet thinks so too. Aside: God, I really hate eclipse. This is why I never use it, because nothing works like it's supposed to. I just want to try Spring Insight out, so that's why I am using STS...

I am on Ubuntu 10.10 if that makes any difference.

Please help. I think I can finally get this to work if I can just get STS/Eclipse to stop being stupid :/

like image 545
egervari Avatar asked Nov 29 '10 14:11

egervari


People also ask

Where does JRE get installed?

The default installation directory of a static JRE is C:\Program Files (x86)\Java\jre n (for 32-bit versions) or C:\Program Files\Java\jre n (for 64-bit versions), where n is the full Java SE release and update number (for example, n = 1.8.

Which JRE should I use Eclipse?

Current releases of Eclipse require Java 11 JRE/JDK or newer. A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries. Regardless of your operating system, you will need to install some Java virtual machine (JVM).

How do I install Spring Tools 4 in Eclipse?

You can install the Spring Tools for Eclipse IDE into an existing Eclipse installation using the Eclipse Marketplace. Just open the marketplace client in Eclipse, search for Spring Tools and install the “Spring Tools (aka Spring IDE and Spring Tool Suite)” entry.


1 Answers

Are you sure you are pointing to the JDK folder and not the JRE folder ?

You must select the root folder of the JDK installation.

like image 184
Alois Cochard Avatar answered Sep 19 '22 13:09

Alois Cochard