chetan honnavile
chetan honnavile

Reputation: 439

Cannot update java from 1.6 to 1.7

As a part of "dbeaver" installation troubleshooting i am trying to update java on my mac from 1.6 to 1.7. I downloaded and installed latest java 8 available from oracle site ,but still java version remains the same.

I even tried updating from java control panel from system preferences,issue remains the same.

can someone let me know why i am getting this issue?,below are the details.

| => java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)

| /usr/bin @boston 
| => sw_Vers
ProductName:    Mac OS X
ProductVersion: 10.11.6
BuildVersion:   15G31

Upvotes: 0

Views: 490

Answers (3)

Walter Tross
Walter Tross

Reputation: 12644

You need to download and install the full JDK (Java Development Kit). You only updated the JRE (Java Runtime Environment).

Upvotes: 0

Ipshia Rahman
Ipshia Rahman

Reputation: 1

Open the .bash_profile

vi ~/.bash_profile

add following line

export  JAVA_HOME=`/usr/libexec/java_home -v 1.7`

This tells your /usr/bin/java link target to use the latest Java 7 Package installed in

/Library/Java/JavaVirtualMachines/

So for JDK 1.7.0_17 JAVA_HOME would be:

/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Ho

Upvotes: 0

Luud van Keulen
Luud van Keulen

Reputation: 1254

Open a terminal and type export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)

Upvotes: 4

Related Questions