如何在64位Eclipse中获得Window Builder的SWT设计器 [英] How to get Window Builder's SWT designer in 64-bit Eclipse

查看:97
本文介绍了如何在64位Eclipse中获得Window Builder的SWT设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7上运行的64位Eclipse中创建SWT WindowBuilder应用程序.

I am trying to create a SWT WindowBuilder application in 64-bit Eclipse running on Windows 7.

我删除了计算机上的32位和64位JRE以及旧的Eclipse和旧的JDK,重新启动,昨天晚上下载了最新版本,然后安装了最新的32/64版本的JRE和JDK.是的,我使用专业"解压缩实用程序7-zip解压缩了"Java开发人员的Eclipse IDE",然后将内容复制到了我创建的"C:\ Program Files \ Development \ Tools \ Eclipse"中.

I removed both the 32-bit and 64-bit JRE on my computer along with the old Eclipse and old JDK, rebooted, downloaded the latest version yesterday evening, and then installed the latest 32/64 versions of the JRE and the JDK. Yes, I used a "professional" unzip utility, 7-zip, to unzip the "Eclipse IDE for Java Developers" and then copied the contents to the "C:\Program Files\Development\Tools\Eclipse", which I created.

我今天早上启动了Eclipse,并试图创建一个SWT应用程序,而SWT是MIA.

I launched Eclipse this morning and tried to create a SWT application and SWT was MIA.

我转到菜单>帮助>安装新软件..."对话框,发现已经安装了SWT.

I went to the "Menu > Help > Install New Software..." dialog to find that SWT was already installed.

这是新项目对话框菜单>文件>新建>其他"的图像.

Here is an image of of the new project dialog "Menu > File > New > Other".

您可以看到Eclipse与SWT捆绑在一起,我确实阅读了安装说明,其中只有Eclipse不支持Windows内置的zip压缩工具,并使用了7-zip.

As you can see Eclipse came bundled with SWT, I did read the installation note about the fact that only Eclipse does not support the Windows built-in zip compression tool, and used 7-zip.

如何使SWT正确安装?我使用的是新下载的版本,除了进入Eclipse外,没有做任何其他事情.

How do I get SWT to install properly? I am using a freshly downloaded version and did not do anything other than go into Eclipse.

为什么SWT不显示?

推荐答案

我发现了这个问题和另一个问题.

I figured out this problem and another one.

安装说明

  1. 下载用于Java开发人员的Eclipse IDE",而不是EE版本.

  1. Download 'Eclipse IDE for Java Developers', not the EE version.

使用WinZip,7-Zip或其他方法(不是Windows内置工具)提取文件.有关此要求,请参阅Eclipse下载页面上的安装说明.

Extract the files using WinZip, 7-Zip, or whatever, just not Windows built-in tool. See installation notes on Eclipse download page for this requirement.

请勿将文件放在Windows 7上的"C:\ Program Files"文件夹中.请参阅此处以作注释.

DO NOT place files in the "C:\Program Files" folder on Windows 7. See here for note.

在启动eclipse.exe之前,请转到环境设置并定义HOME变量,然后将其设置为%USERPROFILE%.您将需要注销,然后重新登录.Windows将不会读取环境设置,除非您执行此设置,例如Eclipse.

BEFORE starting eclipse.exe, go to the environment settings and define the HOME variable and set that to %USERPROFILE%. You will need to log out and then log back in. Windows will not read the environment settings without doing this set and as such Eclipse.

安装 PortableGit-1.8.4-preview20130916 ,然后在PATH变量中添加路径.

Install PortableGit-1.8.4-preview20130916 and add the path in the PATH variable.

启动Eclipse.

转到菜单>帮助>安装新软件...",然后键入kepler.从列表中选择SWT和WindowBuilder.它本来应该是预先捆绑在一起的,但这种方式并没有更好.您将需要重新启动Eclipse.

Go to "Menu > Help > Install New Software..." and type in kepler. Select the SWT and WindowBuilder from the list. It was supposed to come prebundled, but did not, better this way. You will need to restart Eclipse.

打开错误日志,依次单击菜单> Windows>显示视图>错误日志"以查看可能存在的其他任何错误.

Turn on the error log, "Menu > Windows > Show View > Error Log" to see any other errors that might exist.

我仍在处理EGit警告,但存在SWT.

I am still working on the EGit warning, but SWT exists.

我反复尝试了这些步骤(删除Eclipse文件夹并重试),并且这些步骤在我尝试过的所有时间都有效.是的!

I tried these steps repeatedly (deleting Eclipse folder and trying again) and the steps worked each of the times that I tried it. Yay!

这篇关于如何在64位Eclipse中获得Window Builder的SWT设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆