[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-swt-dev] Problem of InputDialog in Eclipse-motif
|
Hi,
When I tried to get a string by InputDialog, I got the following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-motif-2135
in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108)
at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
at org.eclipse.swt.internal.Converter.<clinit>(Converter.java:52)
at org.eclipse.swt.widgets.Shell.<clinit>(Shell.java:109)
at TestInputDialog.main(TestInputDialog.java:17)
I use eclipse-SDK-2.1.2-linux-motif with j2sdk1.4.2_01.
But everything is fine when I use the same source in Windows.
The source is:
public class TestInputDialog {
public static void main(String[] args) {
org.eclipse.swt.widgets.Shell shell = new
org.eclipse.swt.widgets.Shell();
org.eclipse.jface.dialogs.InputDialog dialog = new
org.eclipse.jface.dialogs.InputDialog(shell, "Dialog:", "Enter a string",
null, null);
dialog.open();
String s = dialog.getValue();
}
}
Thanks for your help.
Felix