Re: [opensuse] Missing swt.jar ( Suse 10 )
----- Original Message ---- From: Francesco Scaglioni
To: opensuse@opensuse.org Sent: Wednesday, December 27, 2006 5:53:54 AM Subject: [opensuse] Missing swt.jar ( Suse 10 ) Hi,
Running suse 10. AM trying to compile a thing and run into the error "cannot find swt.jar". I though I had all the java stuff installed.
SWT widget toolkit is not a part of the standard SDK, so you have to either download it from Eclipse or search for libswt3-gtk2 rpm in SUSE repositories.
Can anyone point me in the right direction please?
TIA
F Hope it helps, Dmitry
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I now have eclipse installed and pointed configure at the relevant jar yet it still errors. It seems that configure can "see" some of the files within the jar but not all. ?! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 28 December 2006 01:00, Francesco Scaglioni wrote:
I now have eclipse installed and pointed configure at the relevant jar yet it still errors. It seems that configure can "see" some of the files within the jar but not all.
Over time, there have been many versions of SWT. You may not have the one required by the application trying to use it. What program are you trying to build that requires SWT but does not include it itself? Are there no instructions with that software detailing its prerequisites? Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi,
On Thursday 28 December 2006 01:00, Francesco Scaglioni wrote:
I now have eclipse installed and pointed configure at the relevant jar yet it still errors. It seems that configure can "see" some of the files within the jar but not all.
Over time, there have been many versions of SWT. You may not have the one required by the application trying to use it.
What program are you trying to build that requires SWT but does not include it itself? Are there no instructions with that software detailing its prerequisites?
If I issue : ./configure --with-swt=/usr/share/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.1.0.jar then configure runs fine, without errors. Then make runs without errors. However, following a make install (and male clean), running the program results in : !!! An unhandled exception occured: class java.lang.UnsatisfiedLinkError --- iriverter 0.16 --- --- Settings: --- --- !!! no swt-pi-gtk-3138 in java.library.path !!! !!! java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517) !!! java.lang.Runtime.loadLibrary0(Runtime.java:788) !!! java.lang.System.loadLibrary(System.java:834) !!! org.eclipse.swt.internal.Library.loadLibrary(Library.java:123) !!! org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19) !!! org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) !!! org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) !!! org.eclipse.swt.widgets.Display.<clinit>(Display.java:122) !!! org.thestaticvoid.iriverter.ConverterUI.<init>(ConverterUI.java:28) !!! org.thestaticvoid.iriverter.ConverterUI.main(ConverterUI.java:666) !!! Exception in thread "main" java.lang.NoClassDefFoundError at org.thestaticvoid.iriverter.ConverterUI.main(ConverterUI.java:675) TIA F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Francesco, On Thursday 28 December 2006 13:27, Francesco Scaglioni wrote:
...
Then make runs without errors. However, following a make install (and male clean), running the program results in :
!!! An unhandled exception occured: class java.lang.UnsatisfiedLinkError --- iriverter 0.16 --- --- Settings: --- --- !!! no swt-pi-gtk-3138 in java.library.path !!! !!! java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517) !!! java.lang.Runtime.loadLibrary0(Runtime.java:788) !!! java.lang.System.loadLibrary(System.java:834) !!! org.eclipse.swt.internal.Library.loadLibrary(Library.java:123) !!! org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19) !!! org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63) !!! org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54) !!! org.eclipse.swt.widgets.Display.<clinit>(Display.java:122) !!! org.thestaticvoid.iriverter.ConverterUI.<init>(ConverterUI.java:28) !!! org.thestaticvoid.iriverter.ConverterUI.main(ConverterUI.java:666) !!! Exception in thread "main" java.lang.NoClassDefFoundError at org.thestaticvoid.iriverter.ConverterUI.main(ConverterUI.java:675)
SWT contains a great deal of native code. The problem you're having is that at run time, the proper .so file is not being found by the JVM. You need to make sure you got the proper GTK / Linux .so library file along with the JAR file and it must be accessible via the LD_LIBRARY_PATH environment variable when you run the application that uses the SWT library.
F
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 28 December 2006 13:27, Francesco Scaglioni wrote:
./configure --with-swt=/usr/share/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.1.0.j ar
then configure runs fine, without errors.
Then make runs without errors. However, following a make install (and male clean), running the program results in :
!!! An unhandled exception occured: class java.lang.UnsatisfiedLinkError --- iriverter 0.16 --- --- Settings: --- --- !!! no swt-pi-gtk-3138 in java.library.path
AFAIK, you need the org.eclipse.swt.gtk.freebsd.x86_3.1.0.jar file. Make sure you reference it or at least extract that file. -- kai - theperfectreign@yahoo.com www.perfectreign.com || www.4thedadz.com www.filesite.org || www.donutmonster.com wo ist der ort für den ehrlichsten kuss ich weiss, dass ich ihn für uns finden muss... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 28 December 2006 14:00, Kai Ponte wrote:
On Thursday 28 December 2006 13:27, Francesco Scaglioni wrote:
./configure --with-swt=/usr/share/eclipse/plugins/org.eclipse.swt.gtk.linux.x86 _3.1.0.j ar
then configure runs fine, without errors.
Then make runs without errors. However, following a make install (and male clean), running the program results in :
!!! An unhandled exception occured: class java.lang.UnsatisfiedLinkError --- iriverter 0.16 --- --- Settings: --- --- !!! no swt-pi-gtk-3138 in java.library.path
AFAIK, you need the org.eclipse.swt.gtk.freebsd.x86_3.1.0.jar file. Make sure you reference it or at least extract that file.
Why the FreeBSD JAR file? The native code portion of SWT is platform-specific. I'm not sure about the Java part, but it's conceivable there is a different breakdown of the pure Java vs. native methods that would make the JAR file platform-specific, too. In any event, if the JAR file name includes a OS designation, I'd say use it only on that OS.
-- kai - theperfectreign@yahoo.com
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 28 December 2006 14:09, Randall R Schulz wrote:
!!! no swt-pi-gtk-3138 in java.library.path
AFAIK, you need the org.eclipse.swt.gtk.freebsd.x86_3.1.0.jar file. Make sure you reference it or at least extract that file.
Why the FreeBSD JAR file?
Uh, 'cause I found the answer on a FreeBSD list. Good catch! I suppose there's a Linux version as well. :) -- k -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 28 December 2006 14:48, Kai Ponte wrote:
On Thursday 28 December 2006 14:09, Randall R Schulz wrote:
!!! no swt-pi-gtk-3138 in java.library.path
AFAIK, you need the org.eclipse.swt.gtk.freebsd.x86_3.1.0.jar file. Make sure you reference it or at least extract that file.
Why the FreeBSD JAR file?
Uh, 'cause I found the answer on a FreeBSD list. Good catch! I suppose there's a Linux version as well. :)
As strongly suggested by the fact that Francesco mentioned a file named "org.eclipse.swt.gtk.linux.x86_3.1.0.jar" in the message to which you replied.
-- k
RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 28 December 2006 14:55, Randall R Schulz wrote:
On Thursday 28 December 2006 14:48, Kai Ponte wrote:
On Thursday 28 December 2006 14:09, Randall R Schulz wrote:
!!! no swt-pi-gtk-3138 in java.library.path
AFAIK, you need the org.eclipse.swt.gtk.freebsd.x86_3.1.0.jar file. Make sure you reference it or at least extract that file.
Why the FreeBSD JAR file?
Uh, 'cause I found the answer on a FreeBSD list. Good catch! I suppose there's a Linux version as well. :)
As strongly suggested by the fact that Francesco mentioned a file named "org.eclipse.swt.gtk.linux.x86_3.1.0.jar" in the message to which you replied.
Ahh, I see. You know, it took almost a minute of comparing those - extremely long - filenames to realize what you meant. Reading those filenames is almost as bad as some of the .so files we've got in SUSE! -- kai - theperfectreign@yahoo.com www.perfectreign.com || www.4thedadz.com www.filesite.org || www.donutmonster.com wo ist der ort für den ehrlichsten kuss ich weiss, dass ich ihn für uns finden muss... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Dimych
-
Francesco Scaglioni
-
Kai Ponte
-
Randall R Schulz