找不到要导入的项目 - Helios eclipse

发布于 2024-09-14 13:29:13 字数 99 浏览 1 评论 0原文

下载 64 位 Helios eclipse 时声称没有找到要导入的项目 - 文件是 swt-3.6-win32-win32-x86_64.zip

这应该是相当简单的!

When downloading the 64 bit for Helios eclipse claims that there are no projects found to import - the file is swt-3.6-win32-win32-x86_64.zip

This should be fairly straight forward!!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

情痴 2024-09-21 13:29:13

最重要的是乔所说的:

构建路径页面位于“属性”(右键单击项目)->“属性”中。 Java 构建路径。您可以在那里找到“库”选项卡。

我将在上述解决方法中添加一个步骤:

1) 提取 swt-3.6-win32-win32-x86.zip 文件(或其他版本,无论您需要什么)
2)解压后的文件夹包含2个jar文件swt.jar和swt-debug.jar
3) 在项目的 Java 构建路径页面上,打开“库”选项卡。并将 swt.jar 添加为外部 jar。
4) 在此选项卡上展开 swt.jar,双击“源附件”并指向名为 swt.zip 的存档(也位于顶级 SWT 存档中),这样 javadoc 也会随时为您服务。

就是这样 - 从现在开始,SWT 应该像魅力一样发挥作用。希望有帮助。

On top of what Joe said:

The build path page is located in Properties (right click on project) -> Java Build Path. You can find the Libraries tab there.

I'd add one more step to the aforementioned workaround:

1) Extract the swt-3.6-win32-win32-x86.zip file (or another version, whichever you need)
2) The extracted folder contains 2 jar files swt.jar and swt-debug.jar
3) On the Java build path page of your project, open the Libraries tab. And add the swt.jar as an external jar.
4) Expand swt.jar on this tab, double click "Source attachment" and point to the archive named swt.zip (also comes in the top-level SWT archive), so that the javadoc will also be available for you.

And that's it - SWT should work like a charm from now on. Hope that helps.

柠檬色的秋千 2024-09-21 13:29:13

有一个关于此的错误报告: https://bugs.eclipse.org/ bugs/show_bug.cgi?id=318680

我尝试了推荐的解决方法(如下所示),但找不到解决方法中引用的构建路径页面,也找不到“库”选项卡。

相反,我右键单击 HelloWorldSWT 包(在 Package Explorer 窗口中),选择 Build Path ->添加外部库,并选择 jar 文件 swt.jar。正如教程警告的那样,存在编译错误,所以我选择了 Source ->组织进口。该程序现在可以编译并运行,但不执行任何操作。插入 System.out.println() 语句表明它在创建新 Display() 时终止。

我不知道这是否对[任何人]有帮助,但我想我会分享我迄今为止所尝试的内容。如果有人有任何建议,我们将受到欢迎。

作为参考,以防万一,我在 Mac OS X(64 位)上运行 Eclipse Helios (3.6)。

这是前面提到的解决方法:

Lakshmi Shanmugam 2010-07-02 11:16:01 EDT

从 zip 导入 SWT 项目的步骤不再有效。这
备忘单需要更新。

请按照以下步骤操作:
1) 解压 swt-3.6-win32-win32-x86.zip 文件
2)解压后的文件夹包含2个jar文件swt.jar和swt-debug.jar
3) 在项目的 Java 构建路径页面上,打开“库”选项卡。并添加
swt.jar 作为外部 jar。

There is a bug report on this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=318680

I tried the recommended workaround (included below), but could not find the build path page, nor the Libraries tab, referenced in the workaround.

Instead, I right-clicked on the HelloWorldSWT package (in the Package Explorer window), selected Build Path -> Add External Libraries, and selected the jar file swt.jar. As the tutorial warns, there were compile errors, so I selected Source -> Organize Imports. The program now compiles and runs, but does not do anything. Inserting System.out.println() statements shows that it dies in creating the new Display().

I don't know if this helps [anyone], but I figured I'd share what I've tried so far. If anyone has any suggestions, they would be welcome.

For reference, in case it matters, I'm running Eclipse Helios (3.6) on Mac OS X (64-bit).

Here's the aforementioned workaround:

Lakshmi Shanmugam 2010-07-02 11:16:01 EDT

The step to import the SWT project from the zip is no longer valid. The
cheatsheet needs to be updated.

Please follow the below steps:
1) Extract the swt-3.6-win32-win32-x86.zip file
2) The extracted folder contains 2 jar files swt.jar and swt-debug.jar
3) On the Java build path page of your project, open the Libraries tab. And add
the swt.jar as an external jar.

你列表最软的妹 2024-09-21 13:29:13

无法确认 - 我刚刚从

导入项目是一个工作台活动,与 eclipse 安装过程无关。尝试全新安装完整的 64 位平台(来自 eclipse.org 的发行版之一)。

Can't confirm - I just downloaded said file from the download page with no problem.

Importing projects is a workbench activity and not related to the eclipse installation process. Try a fresh install of a full 64Bit platform (one of the distributions from eclipse.org).

偷得浮生 2024-09-21 13:29:13

我有同样的问题。 Helios 欢迎页面链接的 SWT HelloWorld 教程中有一些说明,指示用户首先使用 File > 导入 SWT 项目。导入...然后选择现有项目到工作区。当您指定 SWT 存档时,您会收到上面提到的错误“没有找到要导入的项目”

我认为问题是教程需要更新以反映该存档不是 Eclipse 项目,因此无法导入到这个时尚。
虽然它不能作为项目导入,但可以链接 jar;或者,可以将源文件转换为 Eclipse 项目,然后可以从那里遵循其他错误的说明。

I have the same problem. There are instructions in the SWT HelloWorld tutorial linked from the Helios welcome page that instruct the user to first import the SWT project using File > Import ... then selecting Existing Projects into Workspace. When you specify the SWT archive, you get the error mentioned above "no projects found to import"

I think the problem is that the tutorial needs to be updated to reflect the fact that this archive is not an eclipse project and so cannot be imported in this fashion.
While it cannot be imported as a project, the jar can be linked; or, the source files can be turned into an eclipse project and the otherwise erroneous instructions can be followed from there.

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