Fedora 更新让 Eclipse 忘记 Java
(不确定这是否是一个可以提问的地方,但我会尝试)。在 Fedora 16 中安装一些更新后,Eclipse 不再知道如何使用 Java 文件。它无法制作它们、编译它们或格式化语法。它只是 eclipse,没有任何 Java。我检查了 yum.log,它安装了大约 6 个 eclipse 更新和 2 个 java 更新。我在互联网上找到的解决方案是删除 .eclipse 并让 eclipse 重新生成它,但这并没有解决任何问题。有人知道怎么回事吗?
(Not sure if this is an okay place to ask, but i'll try). After installing some updates in Fedora 16, Eclipse no longer knows how to use Java files. It can't make them, or compile them, or format the syntax. It's just eclipse without any Java whatsoever. I checked the yum.log and it installed about 6 eclipse updates and 2 java updates. A solution I found on the internet was to delete .eclipse and have eclipse regenerate it, but that didn't fix anything. Anyone know what's up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该问题记录在此处:
http://lists.fedoraproject.org/pipermail /devel/2012-January/161092.html
这是错误:
https://bugzilla.redhat.com/show_bug.cgi?id=760454
基本上,我们陷入进退两难的境地,不得不打破包装循环,因此这破坏了人们现有的安装。移动
~/.eclipse
并重新启动 Eclipse,应该就没问题了。The problem is documented here:
http://lists.fedoraproject.org/pipermail/devel/2012-January/161092.html
and this is the bug:
https://bugzilla.redhat.com/show_bug.cgi?id=760454
Basically, we were caught between a rock and a hard place and had to break a packaging loop so this broke people's existing installations. Move
~/.eclipse
and restart Eclipse and you should be fine.我也遇到过类似的问题,我认为最好一起删除 java 和 eclipse 的每个包。您可以使用以下命令查找已安装的软件包:
其中关键字例如是“jre”、“jdk”或“eclipse”。
一旦找到不需要的软件包,请使用以下命令删除它们
然后我建议您跳过适用于 linux 的默认 jdk 并安装 Oracle 网站提供的 jdk: http://www.oracle.com/technetwork/java/javase/downloads/index.html
我自己安装了版本 6因为我遇到了一些 Maven 问题(m2eclipse) 使用 Java 7。
下载 rpm,安装它并在 .bashrc 文件中设置 java 的路径。
检查所有已安装的 jre/jdk
使用或
,并根据需要设置适当的选项。
接下来,访问 eclipse 网站并下载 eclipse 的最新稳定版本,应该就可以了。您也可以将它与桌面集成,这样您就不必每次都从命令行启动它。
I have faced a similar problem, it would be best in my opinion to remove every package for java and eclipse all together. You can find installed packages with:
where keyword would be for example 'jre', 'jdk' or 'eclipse'.
Once you find the packages you don't want, remove them with
Then I would recommend you to skip default jdk available for linux and install the one provided from the Oracle website: http://www.oracle.com/technetwork/java/javase/downloads/index.html
I have installed version 6 myself as I had some maven problems (m2eclipse) with Java 7.
Download the rpm, install it and set you path to java in .bashrc file.
Check all your installed jre/jdk with
or
and set the apropriate option if necessary.
Next, go to the eclipse website and download the latest stable release of eclipse and you should be fine. You can integrate it with the desktop as well so you won't have to start it from the command line every time.
检查所有可用的 eclipse* 软件包。 “Eclipse”本身只是一个带有大量UI组件的插件平台,除非您也安装了这些插件,否则它不是Java IDE。可能是包装发生了变化,升级完成后,Java 插件不再包含在您安装的软件包中。
Check all of the available eclipse* packages. "Eclipse" itself is just a plug-in platform with a lot of UI components, it's not a Java IDE unless you also install those plug-ins. It's possible that the packaging was changed in a way that the Java plug-ins were no longer included in the packages you have installed after the upgrade completed.