[fedora-java] difficulties to use swt on fedora

Patrice Dumas pertusus at free.fr
Mon Oct 8 21:09:02 UTC 2007


Hello,

I wanted to use swt.jar in a software
(http://iriverter.sourceforge.net/download.shtml), but it turned out to 
be quite complicated to achieve. Maybe I am doing something wrong, but 
if it is not the case, things should certainly be ameliorated.

I found swt.jar to be in libswt3-gtk2, in:
/usr/lib/eclipse/swt-gtk-3.3.jar

Why not in /usr/share/java/swt.jar?

The compilation works with
javac -classpath /usr/lib/eclipse/swt-gtk-3.3.jar:. org/thestaticvoid/iriverter/DVD.java

On fc7, there seems to be a need to do 

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/eclipse/

before starting the application or
/usr/lib/eclipse/libswt-pi-gtk-3346.so
isn't found, but I hadn't that issue in F8:

!!! An unhandled exception occured: class java.lang.UnsatisfiedLinkError
--- iriverter 0.16
--- 
--- Settings:
--- 
--- 
!!! libswt-pi-gtk-3236: libswt-pi-gtk-3236.so: cannot open shared object file: No such file or directory
!!! 
.......         more error messages    ............

--
Pat




More information about the java-devel mailing list