java - 为什么我不能安装 Eclipse?

标签 java linux eclipse ubuntu

我正在尝试安装 Eclipse。

> desktop-file-install eclipse.desktop
> Error on file "eclipse.desktop": Key file does not start with a group


>Name=Eclipse 
>Type=Application
>Exec=/opt/eclipse/eclipse
>Terminal=false
>Icon=/opt/eclipse/icon.xpm
>Comment=Integrated Development Environment
>NoDisplay=false
>Categories=Development;IDE;
>Name[en]=Eclipse

怎么了? 我的 Ubuntu 版本是 10.04,但我不知道它在这里是否起作用。

最佳答案

你需要添加

[Desktop Entry]

到文件的顶部——这是命令要查找的组名。 参见 here有关桌面条目的更多信息。

关于java - 为什么我不能安装 Eclipse?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23963838/

相关文章:

java - 在eclipse中导入Android源码

linux - 在 bash 中使用 read 和 Expect 自动响应

java - 类型转换类(class)<?将 SomeClass> 扩展为 SomeClass?

linux - 清除 Linux 终端模拟器中的最后两行(以及更多)打印行

c - ubuntu 日志文件中的时间戳

java - import org.apache.hadoop 无法解析

eclipse - HTML Meta 的属性 - 标签在 eclipse 中抛出警告

java - 使用 Selenium 按以字母开头的 id 过滤 DOM 元素

java - 我需要设置 setImageResource,暂停并更改为不同的 setImageResource

Java - 从作为参数传递的类型创建 ArrayList