分页: 1 / 1

'tools.jar' is not in IDEA classpath

发表于 : 2015-01-02 17:02
yunhuanhuayu
'tools.jar' is not in IDEA classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.



On my Linux Mint environment I've encountered the same problem. I tried to install Oracle JDK8 using

代码: 全选

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
but the problem remained because installer didn't change environment variables. Then I tried the following

代码: 全选

sudo apt-get install oracle-java8-set-default
and it solved the problem

Re: 'tools.jar' is not in IDEA classpath

发表于 : 2015-01-02 17:11
oneleaf
不错,不过OpenJDK和Oracle的版本有很大差异吗?干嘛不直接用OpenJDK?