Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Can not add SWT library to project
Can not add SWT library to project [message #57923] Sat, 28 August 2004 12:58 Go to next message
Jonas Rathert is currently offline Jonas RathertFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

I just installed a fresh eclipse 3.0 and all files linked to from here:
http://download.eclipse.org/tools/ve/downloads/drops/S-1.0M2 -200407301410/index.html

Build IDs:
eclipse - 200406251208
VE - 200407301410
EMF - 200406281448
GEF - 200406251257
Note: I have MyEclipse 3.8.1 GA installed as well.

When I try to add the SWT library to my project (as described in
http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /vep-home/WebContent/docs/newAndNoteworthy/1.0.0-M2/previewi ngSWT.html)
nothing happens. Eclipse is still running, and VE presents me all Swing
and AWT controls, but the SWT controls are missing.

My .log file gives me an exception (sorry for the loooong lines):

!ENTRY org.eclipse.ui 4 4 Aug 28, 2004 14:36:07.297
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 Aug 28, 2004 14:36:07.307
!MESSAGE
org.eclipse.jem.internal.proxy.core.ProxyPlugin.findPluginJa rAndAttachedSource(Lorg/osgi/framework/Bundle;Lorg/eclipse/c ore/runtime/IPath;)[Ljava/net/URL;
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.jem.internal.proxy.core.ProxyPlugin.findPluginJa rAndAttachedSource(Lorg/osgi/framework/Bundle;Lorg/eclipse/c ore/runtime/IPath;)[Ljava/net/URL;
at org.eclipse.ve.internal.swt.SWTContainer.<init>(SWTContainer.java:56)
at
org.eclipse.ve.internal.swt.SWTContainerInitializer.initiali ze(SWTContainerInitializer.java:12)
...

I looked into my eclipse installation directory and JEM and the proxy
class seem to be there.

Any idea what is going wrong here?

Thanks in advance

Jonas

--
Note: 96.31% of all statistics are fiction.
Re: Can not add SWT library to project [message #57947 is a reply to message #57923] Sat, 28 August 2004 17:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I don't know why you are getting this. That method is definitely in that
M2 driver.

1) From your workspace, select Help->About Eclipse->Feature Details and
select the "Java EMF Model" feature, and look at the bottom of the
dialog. The build id listed should be 200407301410

2) go into your installation on disk to
eclipse/plugins/org.eclipse.jem.proxy_1.0.0, in there the proxy.jar
should be listed as 7/30/2004 2:15PM, size 73,994



--
Thanks, Rich Kulp

Re: Can not add SWT library to project [message #57971 is a reply to message #57947] Sat, 28 August 2004 20:32 Go to previous messageGo to next message
Jonas Rathert is currently offline Jonas RathertFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

Rich Kulp wrote:

> I don't know why you are getting this. That method is definitely in that
> M2 driver.

Actually, I can find the class in one of the JAR files, and the method
seems to be there, yes.

> 1) From your workspace, select Help->About Eclipse->Feature Details and
> select the "Java EMF Model" feature, and look at the bottom of the
> dialog. The build id listed should be 200407301410

No it is not: as mentioned in my first post it is 200406281448. Which is
strange as the files (e.g. proxy.jar) in my eclipse directory are from
20040730 - which answers your second question:

> 2) go into your installation on disk to
> eclipse/plugins/org.eclipse.jem.proxy_1.0.0, in there the proxy.jar
> should be listed as 7/30/2004 2:15PM, size 73,994

It is 7/30/2004 2:16PM, size 73,994. - quite the same :-)

But your answer led me to the right direction: As I mentioned before, I
also use the MyEclipse software (a bundle of various plugins) an they also
ship JEM (and GEF, btw). The funny thing is that eclipse finds the
feature in $ECLIPSE_HOME\features, but the plugin shipped with MyEclipse
(which is installed in a different directory!) is used!?

I do not understand how eclipse finds and loads features and plugins, but
I removed the JEM and GEF plugins that came with MyEclipse and everything
seems to work (at least loading the SWT lib in VEP works, I could not yet
test all MyEclipse functionality :-).

BTW: Before the import via "Add Library..." worked, I tried it by adding
swt.jar "manually" (via "Add External JARs...") - but this did not help!
Can you shortly explain the difference between "Add Library" and "Add
External JARs"?

Anyway, case closed. Thanks for your fast help!

Kind regards,

Jonas

--
Note: 96.31% of all statistics are fiction.
Re: Can not add SWT library to project [message #57995 is a reply to message #57971] Mon, 30 August 2004 15:00 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

We need to know SWT is available. Also, since we need to start a remote
vm with SWT in it for us to get the pictures of what you are building,
we need to also add in the appropriate dlls. Just adding swt.jar to the
classpath doesn't do this. The SWTContainer that we wrote does all of
these things. It tells us that SWT is loaded, it tells us that we need
to add in the dlls to library path, it tells us to load the SWT palette
category.


--
Thanks, Rich Kulp

Re: Can not add SWT library to project [message #597901 is a reply to message #57923] Sat, 28 August 2004 17:46 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I don't know why you are getting this. That method is definitely in that
M2 driver.

1) From your workspace, select Help->About Eclipse->Feature Details and
select the "Java EMF Model" feature, and look at the bottom of the
dialog. The build id listed should be 200407301410

2) go into your installation on disk to
eclipse/plugins/org.eclipse.jem.proxy_1.0.0, in there the proxy.jar
should be listed as 7/30/2004 2:15PM, size 73,994



--
Thanks, Rich Kulp

Re: Can not add SWT library to project [message #597908 is a reply to message #57947] Sat, 28 August 2004 20:32 Go to previous message
Jonas Rathert is currently offline Jonas RathertFriend
Messages: 4
Registered: July 2009
Junior Member
Hi,

Rich Kulp wrote:

> I don't know why you are getting this. That method is definitely in that
> M2 driver.

Actually, I can find the class in one of the JAR files, and the method
seems to be there, yes.

> 1) From your workspace, select Help->About Eclipse->Feature Details and
> select the "Java EMF Model" feature, and look at the bottom of the
> dialog. The build id listed should be 200407301410

No it is not: as mentioned in my first post it is 200406281448. Which is
strange as the files (e.g. proxy.jar) in my eclipse directory are from
20040730 - which answers your second question:

> 2) go into your installation on disk to
> eclipse/plugins/org.eclipse.jem.proxy_1.0.0, in there the proxy.jar
> should be listed as 7/30/2004 2:15PM, size 73,994

It is 7/30/2004 2:16PM, size 73,994. - quite the same :-)

But your answer led me to the right direction: As I mentioned before, I
also use the MyEclipse software (a bundle of various plugins) an they also
ship JEM (and GEF, btw). The funny thing is that eclipse finds the
feature in $ECLIPSE_HOME\features, but the plugin shipped with MyEclipse
(which is installed in a different directory!) is used!?

I do not understand how eclipse finds and loads features and plugins, but
I removed the JEM and GEF plugins that came with MyEclipse and everything
seems to work (at least loading the SWT lib in VEP works, I could not yet
test all MyEclipse functionality :-).

BTW: Before the import via "Add Library..." worked, I tried it by adding
swt.jar "manually" (via "Add External JARs...") - but this did not help!
Can you shortly explain the difference between "Add Library" and "Add
External JARs"?

Anyway, case closed. Thanks for your fast help!

Kind regards,

Jonas

--
Note: 96.31% of all statistics are fiction.
Re: Can not add SWT library to project [message #597912 is a reply to message #57971] Mon, 30 August 2004 15:00 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

We need to know SWT is available. Also, since we need to start a remote
vm with SWT in it for us to get the pictures of what you are building,
we need to also add in the appropriate dlls. Just adding swt.jar to the
classpath doesn't do this. The SWTContainer that we wrote does all of
these things. It tells us that SWT is loaded, it tells us that we need
to add in the dlls to library path, it tells us to load the SWT palette
category.


--
Thanks, Rich Kulp

Previous Topic:Can not add SWT library to project
Next Topic:How can I add a new Viewer to a MultiPageEditorPart that implements SWT controls on it using VE
Goto Forum:
  


Current Time: Thu Dec 26 12:19:01 GMT 2024

Powered by FUDForum. Page generated in 0.04082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top