Ubuntu (64 Bit): Java SDK installieren

3832
David Oneill

Ich muss Java (j2se sdk) auf meinem Computer installieren, um ein Programm (SQLDeveloper) ausführen zu können. Alle Beschreibungen beziehen sich auf die Installation des FireFox-Plug-Ins.

Was muss ich tun, um das installieren zu können?

1

2 Antworten auf die Frage

3
Christopher R.

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 
Ok, ich habe das gemacht. Wo wird es installiert? Ich muss SQLDeveloper auf den Ordner zeigen, in dem sich die Installation befindet. David Oneill vor 14 Jahren 0
Ich sehe Java in / usr / bin, aber wenn ich dies verwende, sagt SQLDeveloper, dass dies nur die JRE ist, nicht das SDK. David Oneill vor 14 Jahren 0
Dies sollte sich in /usr/lib/jvm/java-6-sun-1.6.0.20 installieren Christopher R. vor 14 Jahren 0
1
Anon

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