1

I've Java 1.8 installed on my Mac OS Yosemite... and Terminal shows the following:

mccoy:~ daniel$ which java
/usr/bin/java
mccoy:~ daniel$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
mccoy:~ daniel$ env | grep JAVA
JAVA_OPTS=-Dnode.name=DANIEL -Xmx4g
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
mccoy:~ daniel$ 

But SQL Developer still starts with some older Java 1.7 and complains... how can I fix this?

enter image description here

  • 1
    See if this post helps, down at the "But My SQL Developer is Using the Wrong JDK!?" section: [A]ll you need to do is explore the SQL Developer package, and edit the sqldeveloper-Darwin.conf file in the bin directory. Update the ‘SetJavaHome’ line to point to the 1.7 JDK – ruffin Feb 26 '15 at 13:11
4

As @ruffin pointed out in the comment above I had to edit the package itself! It includes a sqldeveloper.sh script that changes my currently set JAVA_HOME. Just had to comment it out!

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .