Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The full pathname of a JDK installation for Oracle SQL Developer

Tags:

I want to run Oracle SQL Devloper on Ubuntu with this command:

sh sqldeveloper/sqldeveloper.sh 

Then I got this message:

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

So I gave the path of jdk as the following:

/usr/lib/jvm/java-7-openjdk-i386/

But then I got this message:

Error: Java home /usr/lib/jvm/java-7-openjdk-i386//bin/java is not a JDK. Running SQL Developer under a JRE is not supported.

like image 963
Renaud is Not Bill Gates Avatar asked Mar 03 '14 22:03

Renaud is Not Bill Gates


People also ask

Where is JDK installation folder?

The JDK software is installed on your computer, for example, at C:\Program Files\Java\jdk1.

What is the full pathname for java exe?

If you have Java installed, java.exe will be in the bin directory. If you can't find it, download and install Java, then use the install path + "\bin". thanks for the quick answer .

Does Oracle SQL Developer need JDK?

Oracle SQL Developer requires the Java Development Kit (JDK) to run. If you are using Windows, you have the option to download a version of SQL Developer that includes the JDK.


2 Answers

For me it was similar error. I solved it simply by inserting

SetJavaHome /usr/lib/jvm/java-7-openjdk-amd64/ 

into ~/.sqldeveloper/4.0.0/product.conf file.

like image 199
szabozoltan Avatar answered Sep 22 '22 13:09

szabozoltan


I Agree with szabozoltan's answer but there should be some explanation required for this:

SetJavaHome /usr/lib/jvm/java-7-openjdk-amd64/ 

This one we need to keep in product.conf file. Inorder to open that file we need to type following command:

sudo gedit /home/abc/.sqldeveloper/4.0.0/product.conf 

After this, type the following command.

./sqldeveloper.sh 

That's it, your SQL Developer will be opened.

like image 39
Gen Avatar answered Sep 23 '22 13:09

Gen