Hi at all,
somehow there's no swt library in my home folder in /home/timo/.swt/lib/linux/x86_64/. Anyone else has the same problem? Just do a simple "HelloWorld" Test with SWT import like:
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class HelloWorldSWT {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Hello world!");
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
}
It gives you following output:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-4233 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/timo/.swt/lib/linux/x86_64/libswt-gtk-4233.so
Can't load library: /home/timo/.swt/lib/linux/x86_64/libswt-gtk.so
at org.eclipse.swt.internal.Library.loadLibrary(Libra ry.java:331)
at org.eclipse.swt.internal.Library.loadLibrary(Libra ry.java:240)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Conve rter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Conve rter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.j ava:133)
at HelloWorldSWT.main(HelloWorldSWT.java:13)
So why are the libraries not in ~/.swt????