Java 错误:当我尝试将 SWT 导入 Eclipse 时,“无法导入某些项目,因为它们已存在于工作区中”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21504224/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
error: "Some projects cannot be imported because they already exist in the workspace" when i tried to import SWT to Eclipse
提问by user1994587
I import SWT to my project in Java (I work with Eclipse), but I did a mistake and import a version of 64 bit and my JVM is 32-bit. So I tried to import the version of 32-bit but I got an error
我用 Java 将 SWT 导入到我的项目中(我使用 Eclipse),但是我犯了一个错误并导入了 64 位版本,而我的 JVM 是 32 位。所以我尝试导入 32 位版本但出现错误
"Some projects cannot be imported because they already exist in the workspace"
“某些项目无法导入,因为它们已存在于工作区中”
In eclipse I select
在日食中我选择
Import -> Existing Projects into Workspace -> Select archive file
导入 -> 现有项目到工作区 -> 选择存档文件
and choose the correct file of 32-bit.
并选择正确的 32 位文件。
Then i did a big mistake and erased the folder "org.eclipse.swt" from my workspace, because I thought I will be able to import the 32-bit version.
然后我犯了一个大错误,从我的工作区中删除了文件夹“org.eclipse.swt”,因为我认为我可以导入 32 位版本。
But now I don't have also the 64-bit (I get errors like "org.eclipse.swt does not exist" etc)
但现在我也没有 64 位(我收到诸如“org.eclipse.swt 不存在”之类的错误)
Does anyone know what I should do???
有谁知道我该怎么做???
回答by Vivek Vermani
Try this
尝试这个
Uncheck the "copy projects into workspace" checkbox, and then click "refresh" button.
取消选中“将项目复制到工作区”复选框,然后单击“刷新”按钮。