[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Exception using swt in linux amd64

Hi,

I'm beginning using swt and i try the normal hello world, for this i download the swt jar and add it to my project.

When i try the application in windows i don't have any problems at all.

The problem is in linux, i use debian for amd64, eclipse it's working fine and y made some university practice with any problems. But now when i do the same steps like in windows and y try to run the application i obtain this error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3347 or swt-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Widget.isValidSubclass(Unknown Source)
at org.eclipse.swt.widgets.Decorations.checkSubclass(Unknown Source)
at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
at org.eclipse.jface.window.Window.createShell(Window.java:482)
at org.eclipse.jface.window.Window.create(Window.java:425)
at org.eclipse.jface.window.Window.open(Window.java:785)
at HelloJface.run(HelloJface.java:14)
at HelloJface.main(HelloJface.java:25)



Like i can read it's a problem with swt, i imagine because the only version i found for linux it's this one http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1.1-200710231652/download.php?dropFile=swt-3.3.1.1-gtk-linux-x86.zip
and his for x86, what can i do to resolve the problems.


Thanks for the help y and i hope it's not a mistake to ask this here.