JDK Required: 'tools.jar' seems to be not in IDEA classpath解决办法

http://www.androidren.com/index.php?qa=308&qa_1=jdk-required-tools-jar-seems-to-be-not-in-idea-classpath解决办法

今天在Ubuntu下安装ideaIU-14.0.3.tar.gz的时候,刚开始遇到JAVA_HOME没有配置的问题,后来按照下面命令:
sudo apt-get install default-jre
后,提示如题的错误,最后发现上面的安装方法是不完全的安装JDK,所以需要安装JDK完整版。执行下面命令:
sudo apt-get install openjdk-7-jdk

当然,要记得在.bashrc最后添加环境变量,如下:
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

export JAVA_HOME

export JRE_HOME=/usr/lib/jvm/java-7-openjdk-am64/jre

export CLASSPATH=.: JAVAHOME/lib: JRE_HOME/lib:$CLASSPATH

export PATH= JAVAHOME/bin: JRE_HOME/bin:$PATH

你可能感兴趣的:(JDK Required: 'tools.jar' seems to be not in IDEA classpath解决办法)