Topic: Advanced Eclipse SWT Designer

  Print this page

1.Advanced Eclipse SWT Designer Copy to clipboard
Posted by: Big Blue
Posted on: 2003-08-02 10:45



GEF-runtime-I20030618.zip (965.38k)

2.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: Big Blue
Posted on: 2003-08-02 10:58

需要Eclipse 2.1.1

swt-designer-free-1.0.zip (618.15k)

3.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: Big Blue
Posted on: 2003-08-02 11:10

http://www.swt-designer.com

4.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: jfml
Posted on: 2003-08-02 17:18

Oh my god

Very very cool

5.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: hd
Posted on: 2003-08-02 20:48

好东东呀

6.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: syncsync
Posted on: 2003-08-02 23:31

看安装也没有什么特别的,不过我这边运行不起来

总报类找不着,看 eclipse 的log,的确有 class 找不到,我的是 2.11 的 eclipse 和 2.1.1 的 GEF了

7.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: jfml
Posted on: 2003-08-05 09:43

安装确实有问题啊

我的3.0M1版Eclipse装不起来

8.Re:Advanced Eclipse SWT Designer [Re: CrazyJavar] Copy to clipboard
Posted by: scottlai
Posted on: 2003-08-05 10:44

CrazyJavar wrote:
安装确实有问题啊

我的3.0M1版Eclipse装不起来

Confused

Prerequisits

The prerequisits for Advanced Eclipse SWT Designer are:

Windows 2000/XP or higher.
Eclipse IDE 2.1.1.
Graphical Editor Framework (GEF) runtime 2.1.1.

Please ensure that all of these components are installed and configured properly.

9.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: jfml
Posted on: 2003-08-05 10:45

不会这么老土吧,要装回2.1.1

晕倒

10.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: sanigo
Posted on: 2003-08-05 11:35

Really Cool!!

11.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: 鸡肋男
Posted on: 2003-08-05 12:35

安装后,手动添加org.eclipse.swt.nl1_2.1.1下面的nl1.jar和org.eclipse.swt.win32.2.1.1/ws/win32下面的swt.jar加入工程的类路径,文件中的所有提示class没有找到的信息都消失了,语法没有问题,但是运行总是报错:
java.lang.UnsatisfiedLinkError: no swt-win32-2135 in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
  at java.lang.Runtime.loadLibrary0(Runtime.java:788)
  at java.lang.System.loadLibrary(System.java:834)
  at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108)
  at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
  at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java:1291)
  at org.eclipse.swt.graphics.Device.init(Device.java:547)
  at org.eclipse.swt.widgets.Display.init(Display.java:1310)
  at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
  at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
  at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
  at Test.main(Test.java:26)
Exception in thread "main"

是何原因啊!!!!!

12.Re:Advanced Eclipse SWT Designer [Re: 鸡肋男] Copy to clipboard
Posted by: luoq_dl
Posted on: 2003-08-05 13:08

需要将swt-win32-2135.lib或swt-win32-2135.*这个文件的目录加入到path环境变量中,或相关的启动参数中,不然在装载本地库时,找不到要找得库。

13.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: 鸡肋男
Posted on: 2003-08-05 13:40

只有swt_win32-2135.dll一个文件,加到系统环境变量中去吗?

14.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: jfml
Posted on: 2003-08-05 13:45

按道理拷贝的jdk/bin目录下就会OK了

但是还是报错

搞晕了

15.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: 鸡肋男
Posted on: 2003-08-05 13:57

到底要配置哪几个文件啊?
它的网站上的安装说明都没有说清楚,我也晕了。

16.没错 [Re: 鸡肋男] Copy to clipboard
Posted by: luoq_dl
Posted on: 2003-08-05 14:04

加到path环境变量中

17.一步一步的来 [Re: 鸡肋男] Copy to clipboard
Posted by: luoq_dl
Posted on: 2003-08-05 14:32

一步一步的来,逢鬼剁鬼,遇魔灭魔。

18.abc [Re: Big Blue] Copy to clipboard
Posted by: jfml
Posted on: 2003-08-05 14:34

楼上的先演示一下?

Step by step

19.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: jfml
Posted on: 2003-08-05 14:49

我设置了以后还是

java.lang.UnsatisfiedLinkError: no swt-win32-2135 in java.library.path
  at java.lang.ClassLoader.loadLibrary(Unknown Source)
  at java.lang.Runtime.loadLibrary0(Unknown Source)
  at java.lang.System.loadLibrary(Unknown Source)
  at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108)
  at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
  at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java:1291)
  at org.eclipse.swt.graphics.Device.init(Device.java:547)
  at org.eclipse.swt.widgets.Display.init(Display.java:1310)
  at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
  at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
  at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
  at org.jfml.swttraning.app1.App1.main(App1.java:30)
Exception in thread "main"

20.Re:Advanced Eclipse SWT Designer [Re: CrazyJavar] Copy to clipboard
Posted by: luoq_dl
Posted on: 2003-08-05 14:55

实在不行,就在启动虚拟机时加参数
-Djava.library.path=swt-win32-2135.dll的目录;其他目录

21.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: jfml
Posted on: 2003-08-05 14:56

Q: Why do I get the error "java.lang.UnsatisfiedLinkError: no swt-win32-2034 in java.library.path."?
A: You need to place the SWT JNI libraries that allow Java to use the native widgets in a place where the Java Virtual Machine will find them.
The SWT JNI libraries are included in the eclipse download. The location of the libraries depends on the operating system and windowing system of interest.

Windows:
Eclipse 1.0 - <eclipseRoot>\plugins\org.eclipse.swt\ws\win32
Eclipse 2.0 - <eclipseRoot>\plugins\org.eclipse.swt.win32_2.0.0\os\win32\x86
Eclipse 2.1 - <eclipseRoot>\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86
Linux Motif:
Eclipse 1.0 - <eclipseRoot>/plugins/org.eclipse.swt/ws/motif
Eclipse 2.0 - <eclipseRoot>/plugins/org.eclipse.swt.WS_2.0.0/os/linux/x86
Eclipse 2.1 - <eclipseRoot>/plugins/org.eclipse.swt.WS_2.1.0/os/linux/x86
A Java application can be informed of the location of the libraries in several ways:

Set the library path in the VM launch arguments.
In the Launch Configuration Dialog of eclipse select the Arguments page, and in the VM arguments field enter:

-Djava.library.path={runtime-library-path}

Where the runtime-library-path is the absolute path to the directory containing the native code library (see above).
This solution means that the SWT libraries have to be manually added to every project that uses SWT.

Set the library location in an environment variable.
For Windows this is done by editing the PATH environment variable to include the above mentioned runtime-library-path.
in Win 9X this is done by editing the Autoexec.bat file,
on NT or 2K the variable is edited through My Computer > Properties > Advanced > Environment Variables.

On linux/unix, modify the LD_LIBRARY_PATH environment variable to include the runtime-library-path.

Copy the SWT library to a directory that is already on the Java library path. For example, the jre/bin directory.
The disadvantage of this solution is that every time you upgrade eclipse you have to remember to copy the native code library.

FAQ里的三中方式我都试过了,全部不行,而我以前,就用2,是可以的,这次不行了

22.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: sanigo
Posted on: 2003-08-05 15:25

因为我用Eclipse 3.0M2,所以我不试用了
而且我更愿意手写

23.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: 鸡肋男
Posted on: 2003-08-05 15:35

哎,虽然使用的时候挺不错的,但是........还是算了,手写代码吧!

24.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: zgd
Posted on: 2003-08-15 01:21

from eclipse.org, Why Eclipse "3.0"?

Why is the next release of Eclipse called 3.0 rather than 2.2?
For the next Eclipse release we are planning both consolidation and major new functionality. Some of the changes that we are considering would require us to break compatibility with existing plug-ins. Incrementing the minor version number from "2.1" to "2.2" suggested that all existing 2.* plug-ins would run on the new release without change. Changing the major version number from "2" to "3" suggests that existing 2.* plug-ins do not work with the new release, and would need to be ported to 3.0. This gives the development team more maneuvering room and more accurately sets expectations.

Does this mean that Eclipse APIs will be changing in incompatible ways?
Yes. Some of the Eclipse APIs will likely change in ways that will require rewriting portions of existing plug-ins written to the 2.* APIs. Most of the Eclipse APIs will remain the same.

Does this mean that plug-ins based on Eclipse 2.0 and 2.1 will not work in 3.0?
Yes. The changes to the Eclipse APIs in 3.0 will mean that existing 2.1 (and 2.0) plug-ins will not work with Eclipse 3.0. Developers of 2.1 plug-ins will need to port them to 3.0, and ship new versions of their plug-ins.


25.Re:Advanced Eclipse SWT Designer [Re: Big Blue] Copy to clipboard
Posted by: zgd
Posted on: 2003-08-15 01:26

弄到pro版就好

26.配置过程 [Re: Big Blue] Copy to clipboard
Posted by: lilacocean
Posted on: 2003-08-17 01:43

1、下载楼主的两个文件,把包中plugins目录内容拷到Eclipse相应目录。
2、得到swt-2.1-win32.zip包,解压,包中swt-win32-2133.dll文件拷到WINNT\SYSTEM32目录中,或PATH参数指定目录
3、Eclipse环境中菜单PROJECT-PROPERTIES下JAVA BUILD PATH把解压出的swt.jar文件加入PATH
4、新创建一个AWT appliacation即可
以上过程在WIN2K和Eclipse2.1.0中通过。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923