当前位置:K88软件开发文章中心编程语言LinuxLinux01 → 文章内容

Ubuntu eclipse 提示JRE或者JDK不能用

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-4 8:59:29

-->

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

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

不知到这个jayatanaag.jar是个什么东西,看看也不在java路径下,直接

1
sudo rm

干掉,这下日了狗了,给我来了个:

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

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

1
sudo apt-get install jayatana

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

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

有图有真相

经度娘指点,解决方法如下:
终端进入eclipse文件目录下

1
mkdir jre cd jre ln -s jdk路径/bin bin

OK!


Ubuntu eclipse 提示JRE或者JDK不能用