Which one is my JDK path, and which JAVA_HOME?

I just installed Linux Mint and am trying to configure the SpringSource Tool Suite, which requires you to direct it to the "JDK path" system. Although I have not yet downloaded / installed Java on this system, but when I started the update manager, I saw that the Open JDK was installed and found several directories under /usr/lib/jvm(see screenshot below). My questions:

  • Spring Tool Suite requires you to specify the path to the JDK, and my question is: which one to choose, and why ?; and
  • How to find out which of them is mine JAVA_HOME? and
  • What is the difference between "JDK path" and JAVA_HOME?

enter image description here

Thanks in advance!

Edit

echo $ PATH → / usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin: / usr / games

java -version → java "1.7.0_03" OpenJDK (IcedTea7 2.1.1pre) (7 ~ u3-2.1.1 ~ pre1-1ubuntu3) OpenJDK 64- VM ( 22.0-b10, )

java → /usr/bin/java

+5
1

Spring Tool Suite JDK, : , ?;

. Java 6 , Java 7? API, , Java 7 Java 6? , JVM ? .

, - JAVA_HOME?;

, JAVA_HOME JVM, . , Java 6, , , JAVA_HOME /usr/lib/jvm/java -6-openjdk-amd64.

"JDK path" JAVA_HOME?

JDK Java Development Kit, java-, , java-. JAVA_HOME JDK root JRE (Java Runtime Environment) java-; JAVA_HOME JDK.

+5

All Articles