Questions

"Leo Pan" <[email protected]> Tue, 27 Sep 2005 00:47:08 +0000
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
sablevm experts,

    Hi, I have few questions of how to run java programs. I am using Simpad 
GPE 2.0 system. That would be excellent if I can get the answers of the 
following questions.

1. When I try to run java swing program, the frame actually shows up for
few seconds. After that, the program is terminated. I only receive
“segmentation fault”, and back to command prompt.

2. I try to run SWT standalone application, I am not sure which library I
should use in GPE. When I try swt-3.1-gtk-linux-ppc.zip, and try to run a
simple SWT program, I got an error as shown below. I am sure I have
libswt-pi-gtk-3138.so in java.library.path=/media/cf/Leotest/swt
That would be prefect if SWT standalone program can run in simpad.

java -classpath=/media/cf/Leotest/swt/swt.jar:/m
edia/cf/Leotest/:/media/cf/Leotest/swt/
-Djava.library.path=/media/cf/Leotest/sw
t -Dgun.classpath.boot.library.path=/media/cf/Leotest/ TreeClass
java.lang.UnsatisfiedLinkError: Native library `swt-pi-gtk-3138' not found
(as f
ile `libswt-pi-gtk-3138') in gnu.classpath.boot.library.path and
java.library.pa
th
at java.lang.Runtime.loadLibrary (Runtime.java:767)
at java.lang.System.loadLibrary (System.java:516)
at org.eclipse.swt.internal.Library.loadLibrary (Library.java:123)
at org.eclipse.swt.internal.gtk.OS.static{} (OS.java:19)
at java.lang.VMClass.step8 (VMClass.java)
at java.lang.Class.initialize (Class.java:147)
at org.eclipse.swt.internal.Converter.wcsToMbcs (Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs (Converter.java:54)
at org.eclipse.swt.widgets.Display.static{} (Display.java:122)
at java.lang.VMClass.step8 (VMClass.java)
at java.lang.Class.initialize (Class.java:147)
at TreeClass.main (TreeClass.java:13)
at java.lang.VirtualMachine.invokeMain (VirtualMachine.java)
at java.lang.VirtualMachine.main (VirtualMachine.java:108)

Thanks
Leo Pan