Hello, the default java installation is openJDK.
/usr/bin/java -> /etc/alternatives/java
/etc/alternatives/java -> /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
I want to install JDK 1.6, and executed this command:
Code:
alternatives --install /usr/bin/java java /usr/lib/java/jdk1.6.0_45/bin/java 20000
But the symbolic link does change at all. What might be wrong?
when I load the application, I get
Code:
/usr/lib/jvm/java-7-ibm/jre/bin/java/bin/java not found
????
How come it is not working?
I followed the instructions here
http://www.wikihow.com/Install-IBM-Java-on-Ubuntu-Linux
however I only loaded sdk since it has jre.
I've got java-6-openjdk and java-7-openjdk running on Natty (11.04) on one machine and successfully toggle between them using update-alternatives --config java (or javac).
For some reason this doesn't seem to work on a second machine of identical spec.
What is the command update-alternatives used for?
Take this example:
sudo update-alternatives --install /usr/bin/java java /usr/local/java/jre1.7.0_09/bin/java 1
What does it do? How is it different from adding jdk to the path?
Let's say that I have run the command. How would I revert back to the original state?
I finished some steps of installation of jdk-7u1 in Ubuntu 1.11 until below steps.
after that step the terminal tells that there is nothing to configure.
I've been following these steps and got up to the check version of new JRE installation part but java -version doesn't return anything.
I have run sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java and it returned update-alternatives: using /usr/lib/jvm/jre1.7.0/bin/java to provide /usr/bin/java (java) in auto mode so it's seems I did that part successfully.
It
Recently I installed jdk 1.7 in ubuntu. These are the steps that I used to install it.
1. Extracted the folder named 'jdk1.7.0' and copied it to '/usr/lib/jvm'.
2. Installed javac using the following command
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0/bin/javac 4
3.
I want to have two JDKs. The first one was installed a long time ago to /usr/lib/jvm/java-7-oracle/.
system: suse 11.3 (32 bit), kde 4, ff 3.6.10.
scenario: my system is uptodate, and the java version installed (suse vendor) is older (1.6.18) then the version on the java site (1.6.21) http://java.sun.com/javase/downloads/index.jsp. so i downloaded from java site and installed the file. when i did run "java -version" i was getting the older version.