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.