Jre cannot be found in eclipse under ubuntu

Source: Internet
Author: User
In ubuntu, eclipse cannot find jre in some Ubuntu versions, such as 10.10. the following strange problems may occur: 1. install jdk. the jdk I downloaded is in bin format. run the command to decompress it and get a folder. This folder is used as the jdk installation directory and can be copied to any directory. Then configure... in ubuntu, eclipse cannot find jre in some Ubuntu versions, such as 10.10. the following strange problems may occur: 1. install jdk. the jdk I downloaded is in bin format. run the command to decompress it and get a folder. This folder is used as the jdk installation directory and can be copied to any directory. Then configure the environment variable ~ /. Bashrc, add: export JAVA_HOME = Export JRE_HOME = $ JAVA_HOME/jre export PATH = $ JAVA_HOME/bin: $ JRE_HOME/bin: $ PATH restart the machine. 2. install eclipse and decompress the downloaded eclipse package to any directory as the installation directory of eclipse. 3. run eclipse to go to the eclipse installation directory and double-click eclipse. the following error occurs: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. no Java virtual machine was found after searching the following locations:/home/gaoyl/setup/eclipse/jre/bin/java in your current PATH. However, if you use the terminal, and run it in command line mode. By default, eclipse finds jre in its own directory. you can copy jre to the eclipse Directory. This makes it cumbersome to create a soft connection and you can solve it: $ cd. $ Ln-sf $ JRE_HOME jre aims to create a link named jre under the eclipse installation directory and direct it to the jre directory under the java installation directory.
Related Article

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.