【发布时间】:2014-05-18 07:08:11
【问题描述】:
我在 Ubuntu 14.04 上使用 Eclipse Kepler。
我试图导入以下 Openjdk8 项目 https://java.net/projects/adoptopenjdk/pages/EclipseProjectsForOpenJDK
并在此过程中试图创建 swing 项目。但是开普勒在从现有的 ant 构建文件创建一个新的 java 项目时意外停止。
当我重新启动 Kepler 时,它拒绝启动。我在 .log 文件中检查了一些错误并发现
!ENTRY org.eclipse.osgi 4 0 2014-05-18 11:27:24.097
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: Not implemented [multiple displays]
at org.eclipse.swt.SWT.error(SWT.java:4423)
at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:767)
at org.eclipse.swt.widgets.Display.create(Display.java:908)...
由于创建 swing 项目时出错,我决定手动将其重命名为 at。
- 当前工作区。
- .metadata/org.eclipse.core.resources/.projects
当我重新启动开普勒时。我遇到了与项目 swing 相关的错误。
!SUBENTRY 1 org.eclipse.core.resources 4 567 2014-05-18 11:27:23.553
!MESSAGE Could not read metadata for 'swing'.
!STACK 1
org.eclipse.core.internal.resources.ResourceException(~/.../.metadata/.plugins/org.eclipse.core.resources/.projects/swing/1.tree)[568]: java.io.FileNotFoundException: ~/.../.metadata/.plugins/org.eclipse.core.resources/.projects/swing/1.tree (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
!MESSAGE Could not write metadata for '/swing'.
!STACK 0
java.io.FileNotFoundException:
~/.../.metadata/.plugins/org.eclipse.core.resources/.projects/swing/1.tree (No such file or directory)
...
Contains: The project description file (.project) for 'swing' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
!SUBENTRY 2 org.eclipse.core.resources 4 271 2014-05-18 11:27:24.608
!MESSAGE Errors occurred while refreshing resources with the local file system.
我已经按照其他帖子中的建议创建了一个新的工作区,并且工作正常。
但我很想知道我的项目引用还存储在哪里以及如何手动删除它们以在现有工作区上工作。
【问题讨论】: