Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install java (j2se sdk) on my computer for running a program (SQLDeveloper). All the write ups talk about installing the FireFox plug-in.

What do I have to do to get this installed?

share|improve this question
up vote 3 down vote accepted

You need to enable the partner source (assuming you're using Lucid):

sudo add-apt-repository “deb lucid partner”

Update, and then install the necessary packages:

sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin sun-java6-fonts
share|improve this answer
Ok, I did this. Where does it install it? I need to point SQLDeveloper to the folder where the installation lives. – David Oneill May 6 '10 at 5:17
I see java in /usr/bin, but when I use this, SQLDeveloper tells me this is just the JRE not SDK. – David Oneill May 6 '10 at 5:19
This should install to /usr/lib/jvm/java-6-sun- – Christopher R. May 6 '10 at 5:35
Thanks! (extra chars for min count) – David Oneill May 6 '10 at 13:12

This is Sun's link to download the SDK:

you may need to set your $JAVA_HOME environmental variable afterwards.

For example:

% export JAVA_HOME=<the path where you installed the JDK>

You'll want to set this in your .profile to avoid manually setting it each session.

I'm not familiar with the SQLDeveloer installer, but it may make it easier for you by allowing you to specify the JDK location.


share|improve this answer

You must log in to answer this question.

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