Where is my JDK

Hi,
I installed Oracle’s sqldeveloper recently. Now, when I try to start sqldeveloper it asks for the “full pathname of a J2SE installation” and also says “the path will be stored in ~/.sqldeveloper/jdk”.
I checked and there is no “.sqldeveloper” directory in my home folder. I listed the files in “/usr/lib/jvm” but I do not know which one is the JDK file it is asking for. The listing is :
drwxr-xr-x 3 root root 4096 2009-02-22 22:10 java-1.6.0-openjdk-1.2_b11
lrwxrwxrwx 1 root root 30 2009-02-22 22:10 jre-1.6.0-openjdk -> java-1.6.0-openjdk-1.2_b11/jre
lrwxrwxrwx 1 root root 29 2009-02-22 22:10 jre-openjdk -> /etc/alternatives/jre_openjdk
lrwxrwxrwx 1 root root 27 2009-02-22 22:10 jre-1.6.0 -> /etc/alternatives/jre_1.6.0
lrwxrwxrwx 1 root root 21 2009-02-22 22:10 jre -> /etc/alternatives/jre
lrwxrwxrwx 1 root root 25 2009-02-22 22:11 jre-gcj -> /etc/alternatives/jre_gcj
lrwxrwxrwx 1 root root 30 2009-02-22 22:11 jre-1.5.0-gcj -> java-1.5.0-gcj-4.3-1.5.0.0/jre
drwxr-xr-x 3 root root 4096 2009-02-22 22:11 java-1.5.0-gcj-4.3-1.5.0.0
lrwxrwxrwx 1 root root 27 2009-02-22 22:11 jre-1.5.0 -> /etc/alternatives/jre_1.5.0

My $JAVA_HOME is set as “/usr/lib/jvm/jre”. I tried installing jdk-6u12-linux-i586-rpm.bin but YaST says it is already installed.

Any help will be greatly appreciated…

This may not be the ultimate answer, but maybe this helps to see it from another perspective:

  1. You start for the first time. It tells you that it will create ~/.sqldeveloper/jdk, so most probalbly it does not exist already (as you found out).

  2. It asks for a path, not for a file. In other words IMHO it wants to know in which directory it can find the product.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To find the file for any RPM query the RPM database using that package’s
name. In your case I would try:

rpm -ql jdk-6u12-linux

To find binaries the crude way from that:

rpm -ql jdk-6u12-linux | grep bin

Good luck.

vendetta18 wrote:
> Hi,
> I installed Oracle’s sqldeveloper recently. Now, when I try to start
> sqldeveloper it asks for the “full pathname of a J2SE installation”
> and also says “the path will be stored in ~/.sqldeveloper/jdk”.
> I checked and there is no “.sqldeveloper” directory in my home
> folder. I listed the files in “/usr/lib/jvm” but I do not know which
> one is the JDK file it is asking for. The listing is :
> drwxr-xr-x 3 root root 4096 2009-02-22 22:10
> java-1.6.0-openjdk-1.2_b11
> lrwxrwxrwx 1 root root 30 2009-02-22 22:10 jre-1.6.0-openjdk →
> java-1.6.0-openjdk-1.2_b11/jre
> lrwxrwxrwx 1 root root 29 2009-02-22 22:10 jre-openjdk →
> /etc/alternatives/jre_openjdk
> lrwxrwxrwx 1 root root 27 2009-02-22 22:10 jre-1.6.0 →
> /etc/alternatives/jre_1.6.0
> lrwxrwxrwx 1 root root 21 2009-02-22 22:10 jre →
> /etc/alternatives/jre
> lrwxrwxrwx 1 root root 25 2009-02-22 22:11 jre-gcj →
> /etc/alternatives/jre_gcj
> lrwxrwxrwx 1 root root 30 2009-02-22 22:11 jre-1.5.0-gcj →
> java-1.5.0-gcj-4.3-1.5.0.0/jre
> drwxr-xr-x 3 root root 4096 2009-02-22 22:11 java-1.5.0-gcj-4.3-1.5.0.0
> lrwxrwxrwx 1 root root 27 2009-02-22 22:11 jre-1.5.0 →
> /etc/alternatives/jre_1.5.0

>
> My $JAVA_HOME is set as “/usr/lib/jvm/jre”. I tried installing
> ‘jdk-6u12-linux-i586-rpm.bin’ (http://tinyurl.com/aef8pk) but YaST says
> it is already installed.
>
> Any help will be greatly appreciated…
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJorSpAAoJEFl00+q2r0YpzLsP/3tLJmaysz+TO/F99fuXKXEK
Sv5THEF4MNqKdj3fsTbAYrLzSjUWDMagLjcBiP5dyHSijmWh7n5UBY0oTru8lGsP
z437JpdMCxNUTKAFqggMtKlwo1r91co/S4zqVrbUcwPbpbcjb4ydod1WOdQbQZ7o
vxR319Dfts1Q2LIcjqh1XrIOgDinewL+E8oPnNxA85sS8auVVskaDVZBaJgiITvU
L3CcaRWpkPMbjb4O5Jvva6Q5WeeEQS7zHeDT8l3aPZe7NolSErLIQg6gx+YbgL+G
MkWm/yx+EOwfjAgTLvT5q0lyIcpVJNTlMK2zFbGfru5BzTFdRe7EhgRnldauek5l
yxljrkiqREGq8W/dTL/2RfwkS1RMwcNsBOnBFlwF/baXX1G4cKGAKV3SSwWnU93W
gse36riXU9GUl9aRqrgHU/ov3lNqnlkvEwDIvvyDSM5Y+dHoEMOPSvYhgCp7VTgY
t+4p2HqsevsNehi56o3Zw7J093cq/duyORjczQDYuflUYnzmcMmws65xsykR99i2
8LiBYbqb1f4pAEC+e71Gzy7ipnktS43CukHHfVcGt9GkFOUnwspSvfYwDisjskOx
UwYj2jFDzEDfkE0ek2Zv5Pjv6c8+d1nF73L8zn0s6G3VHHeO8jUUFeGZBNwv3Fzx
zxtO3nLJrWRLdnZvJL08
=4cAj
-----END PGP SIGNATURE-----

Thank You Everyone :slight_smile:

Actually I got everything working. The path of JDK is displayed in the YaST itself. I clicked the JDK in YaST and it told me the path. When I executed sqldeveloper first time it created a .sqldeveloper directory in $HOME. I created a file “jdk” in it and put the path of JDK in that. Now it is working perfectly:)

But I put myself in big trouble. I accidently deleted “popper-data” during YaST installation. Now I cannor access my web connection and I do not know how to get back popper-data back without my web connection. Any suggestions???