Search for the default JDK installation path for Ubuntu.

Source: Internet
Author: User
Set the JDK path in eclipse (this is not detailed and won't be searched by yourself ). Search for the default JDK installation path for Ubuntu. You can also perform a manual search as follows (different machines may have different results, but the logic is the same ): which javac returns/usr/bin/javacfile/usr/bin/javac returns/usr/bin/javac: symbolic Link to '/etc/alternatives/javac' and then file/etc/alternatives/javac returns/etc/alternatives/javac: symbolic Link to '/usr/lib/JVM/Java-6-sun/bin/javac' and then file/usr/lib/JVM/Java-6-sun/bin/javac returns /usr/lib/JVM/Java-6-sun/bin/javac: elf 32-bit LSB executable, Intel 80386, Version 1 (sysv), dynamically Li Nked (uses SHARED libs), for GNU/Linux 2.2.5, not stripped till now, the path is/usr/lib/JVM/Java-6-sun/bin /, set it in eclipse.

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.