Ubuntu eclipse 提示JRE或者JDK不能用

付费节点推荐


免费节点


节点使用教程


今天终端命令行用java时给我来了个:

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar

不知到这个jayatanaag.jar是个什么东西,看看也不在java路径下,直接 sudo rm干掉,这下日了狗了,给我来了个:

Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Error opening zip file or JAR manifest missing : /usr/share/java/jayatanaag.jar
Error occurred during initialization of VM
agent library failed to init: instrument

无奈,不管这个是什么玩意,重装:

[cc lang="php"]
sudo apt-get install jayatana
[/cc]

这下算是搞定了,打开eclipse,又来了个提示:

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/abner/Applications/eclipse-java/jre/bin/java
java in your current PATH

有图有真相

经度娘指点,解决方法如下:
终端进入eclipse文件目录下
[cc lang="php"]
mkdir jre cd jre ln -s jdk路径/bin bin
[/cc]

OK!

未经允许不得转载:Bcoder资源网 » Ubuntu eclipse 提示JRE或者JDK不能用

相关推荐

赞 (0)
分享到:更多 ()

评论 0

评论前必须登录!

登陆 注册