ADT Bundle started eclipse error: A java Runtime Environment (JRE) or Java development Kit (JDK) must be available in order to run ECL Ipse.

Source: Internet
Author: User

Install the JDK in ubuntu12.04, then set up the environment variables, and then continue to install the ADT bundle.

It's okay to start eclipse in Eclipse when the endpoint enters the ADT bundle

However, an error occurred when Eclipse started eclipse from the graphical interface into the ADT bundle, as follows:

A Java Runtime Environment (JRE) or Java development Kit (JDK)
Must is available in order to run Eclipse. No Java Virtual Machine
was found after searching the following locations:
/home/czm/adt-bundle-linux-x86_64-20140702/eclipse/jre/bin/java
Java in your current PATH

  

The reasons are:

When installing the JDK, the environment variables set in the configuration file are valid only when you also launch eclipse from the terminal, and when you start Elipse from the graphical interface, the system prompts the JRE or JDK or JVM to be invalid.

The simplest solution:

Create a new JRE directory from the terminal into the Eclipse directory under the ADT Bundle, and then, when creating a soft link, point to the Bin directory under the JDK directory:

CD your Eclipse directory

mkdir JRE

CD JRE

Ln-s your JDK directory/bin

ADT Bundle started eclipse error: A java Runtime Environment (JRE) or Java development Kit (JDK) must be available in order to run ECL Ipse.

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.