Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Eclipse Juno + XTEXT 2.3 = SWT Error
Eclipse Juno + XTEXT 2.3 = SWT Error [message #871112] Thu, 10 May 2012 21:41 Go to next message
Federico Sellanes is currently offline Federico SellanesFriend
Messages: 71
Registered: November 2011
Member
It is possible to run xtext 2.3 in eclipse juno?.. cause I have installed Eclipse Juno and after I downloaded, with the download center, xtext 2.3 from the "latest server"... But, when I try to run my xtext project I get

java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
C:\Users\dsrfedsel\workspace\.metadata\.plugins\org.eclipse.pde.core\Eclipse Application\org.eclipse.osgi\bundles\526\1\.cp\swt-win32-4229.dll: %1 no es una aplicación Win32 válida
no swt-win32 in java.library.path
C:\Users\dsrfedsel\.swt\lib\win32\x86\swt-win32-4229.dll: %1 no es una aplicación Win32 válida
Can't load library: C:\Users\dsrfedsel\.swt\lib\win32\x86\swt-win32.dll

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:647)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Any suggeston?
Re: Eclipse Juno + XTEXT 2.3 = SWT Error [message #871162 is a reply to message #871112] Fri, 11 May 2012 08:19 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Are you using a 32bit Eclipse on a 64bit Windows (or vice versa)?
This does not seem to be am Xtext bug, but SWT.


Am 10.05.12 23:41, schrieb Federico Sellanes:
> It is possible to run xtext 2.3 in eclipse juno?.. cause I have
> installed Eclipse Juno and after I downloaded, with the download center,
> xtext 2.3 from the "latest server"... But, when I try to run my xtext
> project I get
> java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
> C:\Users\dsrfedsel\workspace\.metadata\.plugins\org.eclipse.pde.core\Eclipse
> Application\org.eclipse.osgi\bundles\526\1\.cp\swt-win32-4229.dll: %1 no
> es una aplicación Win32 válida
> no swt-win32 in java.library.path
> C:\Users\dsrfedsel\.swt\lib\win32\x86\swt-win32-4229.dll: %1 no es una
> aplicación Win32 válida
> Can't load library: C:\Users\dsrfedsel\.swt\lib\win32\x86\swt-win32.dll
>
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
> at org.eclipse.swt.internal.C.<clinit>(C.java:21)
> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:138)
> at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:647)
> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
>
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
>
> 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.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>
> Any suggeston?


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: Eclipse Juno + XTEXT 2.3 = SWT Error [message #871233 is a reply to message #871162] Fri, 11 May 2012 14:22 Go to previous messageGo to next message
Federico Sellanes is currently offline Federico SellanesFriend
Messages: 71
Registered: November 2011
Member
Hi, I am using Win 7 32 bits and eclipse-SDK-S-4.2M7-201205031800-win32 ... I reinstalled all again, I still getting the same error.

So this is not the problem, thanks anyway.

[Updated on: Fri, 11 May 2012 14:22]

Report message to a moderator

Re: Eclipse Juno + XTEXT 2.3 = SWT Error [message #871335 is a reply to message #871233] Sat, 12 May 2012 06:57 Go to previous messageGo to next message
Phil R is currently offline Phil RFriend
Messages: 99
Registered: September 2011
Member
Hi,

I have Xtext 2.3.0 working in Juno. As Jan Kohnlein states, try fixing the SWT-library.

Regards,
Phil
Re: Eclipse Juno + XTEXT 2.3 = SWT Error [message #871374 is a reply to message #871112] Sat, 12 May 2012 16:56 Go to previous message
Federico Sellanes is currently offline Federico SellanesFriend
Messages: 71
Registered: November 2011
Member
Thanks. Now is working in my home pc with Win 7 64 bits... so, I think that in the office I have permission problem or something like that. Anyway I will check the swt libraries too.
Previous Topic:Linker does not check type
Next Topic:"Hiding" a rule
Goto Forum:
  


Current Time: Tue Dec 01 19:03:57 GMT 2020

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

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

Back to the top