报错:
‘tools.jar’ is not in IDEA classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
解决方案:
Be sure you have a JDK installed on your system.
sudo apt-get install openjdk-7-jdk
If that does not solve your problem, you must tell your system to use that JDK instead of the current JRE. To do so, you choose which JDK/JRE you use by default on your system by executing the following command in terminal.
sudo update-alternatives –config java
This command will give you a list of alternative java options, which you will then be able select a JDK instead of JRE.