Fedora 更新让 Eclipse 忘记 Java

发布于 2024-12-28 02:27:39 字数 232 浏览 1 评论 0原文

(不确定这是否是一个可以提问的地方,但我会尝试)。在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

方圜几里 2025-01-04 02:27:39

该问题记录在此处:

http://lists.fedoraproject.org/pipermail /devel/2012-January/161092.html

这是错误:

https://bugzilla.redhat.com/show_bug.cgi?id=760454

基本上,我们陷入进退两难的境地,不得不打破包装循环,因此这破坏了人们现有的安装。移动 ~/.eclipse 并重新启动 Eclipse,应该就没问题了。

$ mv ~/.eclipse{,.bakBug760454}

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.

$ mv ~/.eclipse{,.bakBug760454}
情栀口红 2025-01-04 02:27:39

我也遇到过类似的问题,我认为最好一起删除 java 和 eclipse 的每个包。您可以使用以下命令查找已安装的软件包:

sudo rpm -qa | grep keyword

其中关键字例如是“jre”、“jdk”或“eclipse”。

一旦找到不需要的软件包,请使用以下命令删除它们

sudo yum remove packagename

然后我建议您跳过适用于 linux 的默认 jdk 并安装 Oracle 网站提供的 jdk: http://www.oracle.com/technetwork/java/javase/downloads/index.html

我自己安装了版本 6因为我遇到了一些 Maven 问题(m2eclipse) 使用 Java 7。

下载 rpm,安装它并在 .bashrc 文件中设置 java 的路径。

检查所有已安装的 jre/jdk

sudo alternatives --config java

使用或

sudo alternatives --config javac 

,并根据需要设置适当的选项。

接下来,访问 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:

sudo rpm -qa | grep keyword

where keyword would be for example 'jre', 'jdk' or 'eclipse'.

Once you find the packages you don't want, remove them with

sudo yum remove packagename

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

sudo alternatives --config java

or

sudo alternatives --config javac 

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.

情栀口红 2025-01-04 02:27:39

检查所有可用的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文