s**t (2, actually :)) of problems :)

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

s**t (2, actually :)) of problems :)

Postby ivj » Sat Aug 09, 2003 8:09 pm

Hi!

Everything looks great on your web site.

SO, I installed GEF 2.1.1, and the thing itself. Followed the routine, and bam, I see some entries in new->SWT

Everything seems fine, until I try to create an app.
Whenever I create one I get two problems:

1. The class isn't opened with GUI editor... instead, the normal source code editor is used.

2. Generated code imports things like
port org.eclipse.swt.widgets.TableColumn;
, which my compiler doesn't seem to find... is this a classpath issue?

that's pretty much it..

Oh yeah, I checked my log file, and the only thing regarding this stuff is:

!ENTRY org.eclipse.ui 4 4 àâã 09, 2003 20:57:51.544
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 àâã 09, 2003 20:57:51.544
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.swtdesigner.gef.f.run(Unknown Source)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)


Thanks for help in advance!
ivj
 
Posts: 7
Joined: Sat Aug 09, 2003 8:06 pm

Postby ivj » Sat Aug 09, 2003 8:17 pm

ok,
the 2nd problem is half-solved..

I found needed jars in my plugins/... directories (which was VERY inconvinient btw), and import problems have dissapeared.

After building and running the app I got the following:

java.lang.UnsatisfiedLinkError: no swt-win32-2135 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
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 Wd.main(Wd.java:25)
Exception in thread "main"


suggestions?
ivj
 
Posts: 7
Joined: Sat Aug 09, 2003 8:06 pm

Re: s**tload (2, actually :)) of problems :)

Postby admin » Sun Aug 10, 2003 8:23 pm

ivj wrote:Hi!

Everything looks great on your web site.

SO, I installed GEF 2.1.1, and the thing itself. Followed the routine, and bam, I see some entries in new->SWT

Everything seems fine, until I try to create an app.
Whenever I create one I get two problems:

1. The class isn't opened with GUI editor... instead, the normal source code editor is used.

Is there any exception in log?


ivj wrote:2. Generated code imports things like
port org.eclipse.swt.widgets.TableColumn;
, which my compiler doesn't seem to find... is this a classpath issue?

This is normal situation.
You should configure your project - add SWT and JFace jar's, put SWT dll in path.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby ivj » Sun Aug 10, 2003 10:02 pm

hm... are you living in the past?

The log has been posted few days before you answered.

And the classpath issue has been resolved (as well, posted few days before you answered)... and there's a new problem.. please read.
ivj
 
Posts: 7
Joined: Sat Aug 09, 2003 8:06 pm

Postby admin » Sun Aug 10, 2003 10:58 pm

ivj wrote:hm... are you living in the past?

No. :-)

ivj wrote:The log has been posted few days before you answered.

We just published version 1.02, try it.
And, I am not sure how you produced this log, but do you see "Design" page in Designer multipage editor?

ivj wrote:And the classpath issue has been resolved (as well, posted few days before you answered)... and there's a new problem.. please read.

Yes, I see.
You need to have your SWT dll in path, this is usual problem for beginners with SWT. For example put it in WINNT\System32 if you use W2k/XP.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby ivj » Mon Aug 11, 2003 12:02 pm

Ok, I downloaded & installed 1.02

I placed SWTDesigner.dll into my windows/system32 folde, and I imported all the swt related jars into my project.

and STILL.. when I try to open java file using "SWT editor" I get normal source code editor.

and when I try to run the damn thing I get

java.lang.UnsatisfiedLinkError: no swt-win32-2135 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
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:21)
Exception in thread "main"


any ideas?
ivj
 
Posts: 7
Joined: Sat Aug 09, 2003 8:06 pm

Postby admin » Mon Aug 11, 2003 7:48 pm

ivj wrote:Ok, I downloaded & installed 1.02

I placed SWTDesigner.dll into my windows/system32 folde, and I imported all the swt related jars into my project.

You should place not SWTDesigner.dll, but swt-win32-2135.dll ! This is DLL about which you receive exception!

ivj wrote:and STILL.. when I try to open java file using "SWT editor" I get normal source code editor.

There are two tab items below editor - "Source" (active by default, so you see "normal" editor) and "Design". Select "Design" to activate design mode.


ivj wrote:and when I try to run the damn thing I get

java.lang.UnsatisfiedLinkError: no swt-win32-2135 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
at java.lang.Runtime.loadLibrary0(Runtime.java:772)
at java.lang.System.loadLibrary(System.java:832)
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:21)
Exception in thread "main"


any ideas?
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby ivj » Mon Aug 11, 2003 10:18 pm

Wow!

That's some good liquor s**t Yoda!!!

Awesome thing!

I'll play with it for a while, and I have a feeling I'll buy it.
ivj
 
Posts: 7
Joined: Sat Aug 09, 2003 8:06 pm

Postby admin » Mon Aug 11, 2003 10:22 pm

I am happy that we can help you. :D
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest