linux - Install Java 1.7 OpenJDK in another directory -


i need install java 1.7 openjdk in /opt/java1.7 directory.

when run whereis java still shows it's installed in /usr/bin/java , need /opt/java1.7/.

let system's package manager (yum, apt-get; assuming running linux distro) install wherever defaults to.

then create symlink with:

sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64 /opt/java1.7 

(using paths indicated in comment question).


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -