Ubuntu 14.04 Viewing the installation path for Java

Source: Internet
Author: User

Sometimes, after installing a software with Apt-get install, you don't know where the installation path of the software is. How to find out the installation path of the software?

Below we java this software for example, find out Ubuntu 14.04 above Java installation path.

1. First java-version, the output information shows that Java is actually installed

2. Whereis Java, output information to see where the path is

3. ls-l/usr/bin/java See if this is a soft connection, find the path that the soft connection points to

Find out the output information, display or a soft connection, continue to find, Ls-l/etc/alternatives/java

Find out the output information, display or a soft connection, continue to find, Ls/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

This is the real file path, and here we find the path address of Java.

----------------------------------------------------------------------------------

Reference: http://www.blogjava.net/paulwong/archive/2014/05/04/413199.html

Sometimes I don't know where Java is installed. Whereis java command does not know Java is a true installation path
Can be viewed by update-alternatives--config java command

[Email protected]: ~$ update-alternatives--config java
There is only one alternative in link Group Java:/usr/lib/jvm/java-7-oracle/jre/bin/java
Nothing to configure.
[Email protected]: ~$


Or This method can also:
Go to the appropriate directory: Cd/usr/bin

See where Java is linked: Ls-l java

Ubuntu 14.04 Viewing the installation path for Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.