Type the full pathname of a JDK installation when running Oracle SQL Developer

When you execute the Oracle SQL Developer for the firts time it’ll asks you to give the full pathname of a JDK installation:

 Oracle SQL Developer
 Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.

Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /home/user/.sqldeveloper/4.0.0/product.conf

oracle sql developer

If you don’t know that pathname run this command in the terminal and you’ll see the available JDKs and the one currently being used:

$ sudo /usr/sbin/update-alternatives --display javac
javac - auto mode
  link currently points to /usr/lib/jvm/java-7-oracle/bin/javac
/usr/lib/jvm/java-7-openjdk-amd64/bin/javac - priority 1051
  slave javac.1.gz: /usr/lib/jvm/java-7-openjdk-amd64/man/man1/javac.1.gz
/usr/lib/jvm/java-7-oracle/bin/javac - priority 1052
  slave javac.1.gz: /usr/lib/jvm/java-7-oracle/man/man1/javac.1.gz
Current 'best' version is '/usr/lib/jvm/java-7-oracle/bin/javac'.

You don’t have to give Oracle SQL Developer that full path but only the path that contains the bin folder, in my case it’s /usr/lib/jvm/java-7-oracle.

You might also like

View MySQL server information
With the server up and running:$ mysqladmin variables -u root -p Enter password: +----------------------------+----------------------------+ |...

Fix “OSX10.9.xctoolchain/usr/bin/cc: No such file or directory”
You may get this error while compiling something on the command line with Mac OS X:/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc:...

Install Android SDK and Tools with Eclipse in Ubuntu, Mac OS X and Windows
Here I'll explain the process to install Android SDK and Tools. There are 4 things you have to install...

Can’t configure with cmake in Mac OS X 10.8 and Xcode 4.4
I just did a clean install of Mac OS X 10.8 Mountain Lion and Xcode 4.4 so when I was ready to compile...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.