今天终端命令行用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
无奈,不管这个是什么玩意,重装:
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 machine was found after searching the following locations: /home/abner/Applications/eclipse-java/jre/bin/java java in your current PATH
有图有真相
经度娘指点,解决方法如下:
终端进入eclipse文件目录下
OK!