Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Not able to add swt library to the project
Not able to add swt library to the project [message #125282] Thu, 25 May 2006 14:42 Go to next message
Eclipse UserFriend
Originally posted by: maffeir.vdavda.com

I've just downloaded Callisto RC3, starting from eclipseRC4 and then
updating the program using callisto update site.

I've selected only VE (and its dependencies)in the callisto list, so after
installing it, i try to create a swt application.

I create a new java project and then a new visual class.

In the wizard if I select SWT->Shell or composite and click on Finish, the
wizard does nothing and i need to click cancel to exit.

Then i try to add swt library to the project under Project Build Path, i
select SWT from the list, then IDE Platform and check Jface support, click
on finish but nothing appears on the build path (except for the installed
JRE).

So what i'm missing??

Thank you for your support!!
Re: Not able to add swt library to the project [message #125296 is a reply to message #125282] Thu, 25 May 2006 15:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jefmyers.us.ibm.com

What OS are you running on? Are there any errors in the .log file in
your workspace's .metadata directory?

Thanks,
- Jeff
Re: Not able to add swt library to the project [message #125319 is a reply to message #125296] Thu, 25 May 2006 16:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Also exactly what versions of VE, EMF, GEF, and Eclipse do you have
downloaded?

Jeff Myers wrote:
> What OS are you running on? Are there any errors in the .log file in
> your workspace's .metadata directory?
>
> Thanks,
> - Jeff

--
Thanks,
Rich Kulp
Re: Not able to add swt library to the project [message #125331 is a reply to message #125319] Fri, 26 May 2006 07:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: maffeir.vdavda.com

Rich Kulp wrote:

> Also exactly what versions of VE, EMF, GEF, and Eclipse do you have
> downloaded?

Visual Editor
Version: 1.2.0.v20060518_RC1
Build id: 200605181544

Java EMF Model
Version: 1.2.0.v20060518_RC1
Build id: 200605181544

Eclipse Graphical Editing Framework
Version: 3.1
Build id: 20060517-0757

Eclipse Modeling Framework (EMF)
Version: 2.2.0.v200605151820
Build id: 200605151820

Eclipse Platform
Version: 3.2.0.v20060512-0730-_OZ2g3C9A7hWY9A
Build id: I20060512-1600


I work on Windows Xp SP2 and below you can see the log file when i try to
add swt library to a java project. Hope it helps!
PS: If i create a new RCP application i'm able to see the SWT components
in the Visual Editor palette..so the problem is to create a single swt
application...

!SESSION 2006-05-26 09:18:14.109
-----------------------------------------------
eclipse.buildId=I20060512-1600
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Framework arguments: –vmargs –Xms228M –Xmx392M
Command-line arguments: -os win32 -ws win32 -arch x86 –vmargs –Xms228M
–Xmx392M

!ENTRY org.eclipse.ui 4 4 2006-05-26 09:40:45.171
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-05-26 09:40:45.171
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.osgi.framework.internal.core.PackageAdminImpl.ge tFragments(PackageAdminImpl.java:478)
at
org.eclipse.core.internal.runtime.InternalPlatform.getFragme nts(InternalPlatform.java:389)
at org.eclipse.core.runtime.Platform.getFragments(Platform.java :1346)
at
org.eclipse.ve.internal.swt.SWTConfigurationContributor.getS rcConfig(SWTConfigurationContributor.java:564)
at
org.eclipse.ve.internal.swt.SWTConfigurationContributor.getP latformSrcLocationFor(SWTConfigurationContributor.java:633)
at
org.eclipse.ve.internal.swt.SWTConfigurationContributor.getP latformPath(SWTConfigurationContributor.java:679)
at
org.eclipse.ve.internal.swt.SWTContainer.initPlatformPath(SW TContainer.java:438)
at
org.eclipse.ve.internal.swt.SWTContainer.computeEntries(SWTC ontainer.java:691)
at org.eclipse.ve.internal.swt.SWTContainer$3.run(SWTContainer. java:719)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at org.eclipse.ve.internal.swt.SWTContainer.init(SWTContainer.j ava:717)
at
org.eclipse.ve.internal.swt.SWTContainer.getClasspathEntries (SWTContainer.java:757)
at
org.eclipse.jdt.internal.core.JavaModelManager.containerPutI fInitializingWithSameEntries(JavaModelManager.java:494)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore .java:4106)
at
org.eclipse.ve.internal.swt.SWTContainerInitializer.initiali ze(SWTContainerInitializer.java:23)
at
org.eclipse.jdt.internal.core.JavaModelManager.initializeCon tainer(JavaModelManager.java:1900)
at
org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC ontainer(JavaModelManager.java:1267)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore .java:1470)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement . <init>(CPListElement.java:118)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement . <init>(CPListElement.java:73)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement . <init>(CPListElement.java:69)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage.openContainerSelectionDialog(LibrariesWorkbookPage. java:815)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage.libaryPageCustomButtonPressed(LibrariesWorkbookPage .java:243)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage.access$0(LibrariesWorkbookPage.java:230)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage$LibrariesAdapter.customButtonPressed(LibrariesWorkb ookPage.java:185)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField.buttonPressed(TreeListDialogField.java:167)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField.doButtonSelected(TreeListDialogField.java:385)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField.access$2(TreeListDialogField.java:381)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField$2.widgetSelected(TreeListDialogField.java:346)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:156)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: Not able to add swt library to the project [message #125405 is a reply to message #125331] Tue, 30 May 2006 15:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try using the Eclipse SDK instead of just Eclipse platform. I think we
made an assumption that Eclipse SDK was installed. And we didn't test
for it not being installed.

--
Thanks,
Rich Kulp
Re: [SOLVED]Not able to add swt library to the project [message #125429 is a reply to message #125405] Wed, 31 May 2006 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: maffeir.vdavda.com

> Try using the Eclipse SDK instead of just Eclipse platform. I think we
> made an assumption that Eclipse SDK was installed. And we didn't test
> for it not being installed.

You're right..i download eclipse sdk RC4 and unzip it over the previous
installation and now it works, i've created a swt project with a shell and
everything goes well.

Do you think that i need to open a Bugzilla entry?
Re: [SOLVED]Not able to add swt library to the project [message #125456 is a reply to message #125429] Wed, 31 May 2006 15:54 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I opened one yesterday when you brought this to my attention, thanks.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=144464

Ruggero Maffei wrote:
>> Try using the Eclipse SDK instead of just Eclipse platform. I think we
>> made an assumption that Eclipse SDK was installed. And we didn't test
>> for it not being installed.
>
>
> You're right..i download eclipse sdk RC4 and unzip it over the previous
> installation and now it works, i've created a swt project with a shell
> and everything goes well.
>
> Do you think that i need to open a Bugzilla entry?
>

--
Thanks,
Rich Kulp
Re: Not able to add swt library to the project [message #612964 is a reply to message #125282] Thu, 25 May 2006 15:24 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
What OS are you running on? Are there any errors in the .log file in
your workspace's .metadata directory?

Thanks,
- Jeff
Re: Not able to add swt library to the project [message #612968 is a reply to message #125296] Thu, 25 May 2006 16:44 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Also exactly what versions of VE, EMF, GEF, and Eclipse do you have
downloaded?

Jeff Myers wrote:
> What OS are you running on? Are there any errors in the .log file in
> your workspace's .metadata directory?
>
> Thanks,
> - Jeff

--
Thanks,
Rich Kulp
Re: Not able to add swt library to the project [message #612969 is a reply to message #125319] Fri, 26 May 2006 07:43 Go to previous message
Eclipse UserFriend
Originally posted by: maffeir.vdavda.com

Rich Kulp wrote:

> Also exactly what versions of VE, EMF, GEF, and Eclipse do you have
> downloaded?

Visual Editor
Version: 1.2.0.v20060518_RC1
Build id: 200605181544

Java EMF Model
Version: 1.2.0.v20060518_RC1
Build id: 200605181544

Eclipse Graphical Editing Framework
Version: 3.1
Build id: 20060517-0757

Eclipse Modeling Framework (EMF)
Version: 2.2.0.v200605151820
Build id: 200605151820

Eclipse Platform
Version: 3.2.0.v20060512-0730-_OZ2g3C9A7hWY9A
Build id: I20060512-1600


I work on Windows Xp SP2 and below you can see the log file when i try to
add swt library to a java project. Hope it helps!
PS: If i create a new RCP application i'm able to see the SWT components
in the Visual Editor palette..so the problem is to create a single swt
application...

!SESSION 2006-05-26 09:18:14.109
-----------------------------------------------
eclipse.buildId=I20060512-1600
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Framework arguments: –vmargs –Xms228M –Xmx392M
Command-line arguments: -os win32 -ws win32 -arch x86 –vmargs –Xms228M
–Xmx392M

!ENTRY org.eclipse.ui 4 4 2006-05-26 09:40:45.171
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-05-26 09:40:45.171
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.osgi.framework.internal.core.PackageAdminImpl.ge tFragments(PackageAdminImpl.java:478)
at
org.eclipse.core.internal.runtime.InternalPlatform.getFragme nts(InternalPlatform.java:389)
at org.eclipse.core.runtime.Platform.getFragments(Platform.java :1346)
at
org.eclipse.ve.internal.swt.SWTConfigurationContributor.getS rcConfig(SWTConfigurationContributor.java:564)
at
org.eclipse.ve.internal.swt.SWTConfigurationContributor.getP latformSrcLocationFor(SWTConfigurationContributor.java:633)
at
org.eclipse.ve.internal.swt.SWTConfigurationContributor.getP latformPath(SWTConfigurationContributor.java:679)
at
org.eclipse.ve.internal.swt.SWTContainer.initPlatformPath(SW TContainer.java:438)
at
org.eclipse.ve.internal.swt.SWTContainer.computeEntries(SWTC ontainer.java:691)
at org.eclipse.ve.internal.swt.SWTContainer$3.run(SWTContainer. java:719)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at org.eclipse.ve.internal.swt.SWTContainer.init(SWTContainer.j ava:717)
at
org.eclipse.ve.internal.swt.SWTContainer.getClasspathEntries (SWTContainer.java:757)
at
org.eclipse.jdt.internal.core.JavaModelManager.containerPutI fInitializingWithSameEntries(JavaModelManager.java:494)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore .java:4106)
at
org.eclipse.ve.internal.swt.SWTContainerInitializer.initiali ze(SWTContainerInitializer.java:23)
at
org.eclipse.jdt.internal.core.JavaModelManager.initializeCon tainer(JavaModelManager.java:1900)
at
org.eclipse.jdt.internal.core.JavaModelManager.getClasspathC ontainer(JavaModelManager.java:1267)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore .java:1470)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement . <init>(CPListElement.java:118)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement . <init>(CPListElement.java:73)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.CPListElement . <init>(CPListElement.java:69)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage.openContainerSelectionDialog(LibrariesWorkbookPage. java:815)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage.libaryPageCustomButtonPressed(LibrariesWorkbookPage .java:243)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage.access$0(LibrariesWorkbookPage.java:230)
at
org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWork bookPage$LibrariesAdapter.customButtonPressed(LibrariesWorkb ookPage.java:185)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField.buttonPressed(TreeListDialogField.java:167)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField.doButtonSelected(TreeListDialogField.java:385)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField.access$2(TreeListDialogField.java:381)
at
org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDia logField$2.widgetSelected(TreeListDialogField.java:346)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:156)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: Not able to add swt library to the project [message #612981 is a reply to message #125331] Tue, 30 May 2006 15:02 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Try using the Eclipse SDK instead of just Eclipse platform. I think we
made an assumption that Eclipse SDK was installed. And we didn't test
for it not being installed.

--
Thanks,
Rich Kulp
Re: [SOLVED]Not able to add swt library to the project [message #612985 is a reply to message #125405] Wed, 31 May 2006 07:25 Go to previous message
Eclipse UserFriend
Originally posted by: maffeir.vdavda.com

> Try using the Eclipse SDK instead of just Eclipse platform. I think we
> made an assumption that Eclipse SDK was installed. And we didn't test
> for it not being installed.

You're right..i download eclipse sdk RC4 and unzip it over the previous
installation and now it works, i've created a swt project with a shell and
everything goes well.

Do you think that i need to open a Bugzilla entry?
Re: [SOLVED]Not able to add swt library to the project [message #612989 is a reply to message #125429] Wed, 31 May 2006 15:54 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I opened one yesterday when you brought this to my attention, thanks.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=144464

Ruggero Maffei wrote:
>> Try using the Eclipse SDK instead of just Eclipse platform. I think we
>> made an assumption that Eclipse SDK was installed. And we didn't test
>> for it not being installed.
>
>
> You're right..i download eclipse sdk RC4 and unzip it over the previous
> installation and now it works, i've created a swt project with a shell
> and everything goes well.
>
> Do you think that i need to open a Bugzilla entry?
>

--
Thanks,
Rich Kulp
Previous Topic:How to recognize and execute the non-visual methods?
Next Topic:Linking Views
Goto Forum:
  


Current Time: Thu Apr 25 06:08:10 GMT 2024

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

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

Back to the top