简体   繁体   中英

Troubles installing JDK on Ubuntu

I followed this instruction https://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7 to install Java on my Ubuntu system, but to the line

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1

I just get this response:

update-alternatives: using /usr/lib/jvm/jdk1.7.0/bin/java to provide /usr/bin/java (java) in auto mode.

Can someone tell me how to install it?

Looks like it worked? What's the output of java -version ? If it says "Java version 1.7.0" you're all set.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM