Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 3 down vote accepted

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

sudo add-apt-repository “deb http://archive.canonical.com/ 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-1.6.0.20 –  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: http://java.sun.com/javase/downloads/widget/jdk6.jsp

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.

GL

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.