我想在 ubuntu 上安装 eclipse。我做了什么:我解压缩了 Eclipse 的 tar 存档。我试图从命令行启动 Eclipse - 像这样 - ./eclipse。有用。但后来我尝试使用以下命令创建桌面图标:gnome-desktop-item-edit ~/Desktop --create-new。在一个新图标中,我显示了可以从命令行启动的 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/artem/eclipse/jre/bin/java
java in your current PATH
而且我在终端收到一条消息(在某个阶段它出现了):
(gnome-desktop-item-edit:8998): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.DSV8LW': No such file or directory
我正在使用 Ubuntu 12.04 x32 和 eclipse Juno。
PS。PATH 变量指向 jdk/bin 和 JAVA_HOME - 指向 jdk 文件夹