Mailinglist Archive: opensuse (4633 mails)

< Previous Next >
Re: [opensuse] Missing swt.jar ( Suse 10 )
  • From: Randall R Schulz <rschulz@xxxxxxxxx>
  • Date: Thu, 28 Dec 2006 13:52:19 -0800
  • Message-id: <200612281352.19412.rschulz@xxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >