'tools.jar' is not in IDEA classpath

上网、浏览、聊天、下载等
回复
yunhuanhuayu
帖子: 7
注册时间: 2008-10-06 16:00

'tools.jar' is not in IDEA classpath

#1

帖子 yunhuanhuayu » 2015-01-02 17:02

'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
头像
oneleaf
论坛管理员
帖子: 10454
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

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

#2

帖子 oneleaf » 2015-01-02 17:11

不错,不过OpenJDK和Oracle的版本有很大差异吗?干嘛不直接用OpenJDK?
回复