[06:01] <hectorUbu> hello...
[06:02] <grenegar> hi
[06:02] <hectorUbu> could I get some help here related to running a Java app in Ubuntu?
[06:03] <grenegar> will try :)
[06:03] <hectorUbu> thanks!
[06:04] <hectorUbu> I'm trying to run a program called Sunrise, I used it in other distros without any probelm, but now using Ubuntu Edgy I get an error about not finding a library that is right inside the same directory
[06:04] <hectorUbu> this is the error output: http://papernapkin.org/pastebin/view/2067
[06:04] <hectorUbu> I'm using Sun-Java 1.5
[06:06] <grenegar> so file 'swt-atk-gtk-3206' is in current directory, right?
[06:07] <hectorUbu> yes
[06:07] <hectorUbu> its named libswt-atk-gtk-3206.so
[06:08] <grenegar> does your CLASSPATH include . in it (current directory)
[06:08] <hectorUbu> this is the command line: java -Xmx128m -Djava.library.path=. -jar sunrise-desktop.jar
[06:10] <grenegar> i think that any file *.so is not a java library. i expected swt-atk-gtk-3206.jar instead
[06:12] <hectorUbu> mmm...
[06:13] <grenegar> *.so is shared object file - a binary file used by operating system or apps i think... not for java object code.
[06:14] <grenegar> *.so does not require a runtime environment like jre to interpret object code
[06:16] <grenegar> i guess that a problem exists with jre install. Maybe the .so file is not linked to the jre for some reason, as it should be.
[06:17] <hectorUbu> ok... I just realized that the name of the file is libswt-gtk-3206.so without the atk... is that why>
[06:19] <grenegar> Seems like this .so provides java swt graphics toolkit mappings to gtk. you can try changing the launch command with this correct filename, but i'm pretty sure problems exists with .so being linked from jre (remove and re-install jre to fix?)
[06:19] <grenegar> sorry i don't use swt myself
[06:20] <hectorUbu> ok, no problem!
[06:21] <hectorUbu> I could try recompiling the app from source... but I don't know how to compile java apps
[06:21] <hectorUbu> is not with ./configure & make, right?
[06:22] <grenegar> no, that is for native compile on linux
[06:22] <grenegar> for java there is command 'javac' to compile however i think problem is with jre installation, not your java app
[06:23] <hectorUbu> I installed Java from the ubuntu repository
[06:23] <hectorUbu> and tried reinstalling
[06:23] <hectorUbu> I have other Java app that is running fine
[06:23] <hectorUbu> it looks like is about paths... but I don't know what could be
[06:24] <grenegar> basically the jre will interpret the object code of your app and use the swt-to-gtk library to draw the gui on the screen, however this library can't be loaded by the jre
[06:24] <grenegar> maybe the other app uses swing instead of swt for gui (assuming it is a gui app at all)?
[06:25] <hectorUbu> it is gui, yes
[06:25] <grenegar> swing and swt are two different libraries for making a gui with java (if you don't know)
[06:25] <hectorUbu> I found this file: /usr/lib/jni/libswt-atk-gtk-3139.so 
[06:26] <hectorUbu> but it's 3139 and not 3206
[06:27] <hectorUbu> I created a symlink changing the name to 3206, but didn't work, hehe
[06:29] <grenegar> hmm. found a package libswt3.1-gtk-java
[06:29] <grenegar> try: sudo apt-get install libswt3.1-gtk-java 
[06:29] <hectorUbu> it's installed already
[06:30] <grenegar> maybe remove and re-install?
[06:30] <hectorUbu> done... and the same
[06:32] <hectorUbu> that package installs a second one called libswt3.1-gtk-jni, which contains the file libswt-atk-gtk-3139.so
[06:32] <hectorUbu> but Sunrise is looking for libswt-atk-gtk-3206.so
[06:32] <hectorUbu> that could be the problem...
[06:35] <grenegar> seems like installation of this package fails to link this library correctly. maybe you can google for a manual fix for this? Sorry I can't help further.... 
[06:36] <hectorUbu> no problem, thank you for your time.
[06:36] <grenegar> my pleasure
[06:36] <hectorUbu> just one more question, do you know what the directory /usr/lib/jni is for?
[06:37] <hectorUbu> is that used by sun-java?
[06:37] <grenegar> some info here: http://java.sun.com/j2se/1.4.2/docs/guide/jni/
[06:38] <hectorUbu> thanks
[06:39] <grenegar> embed jre into a native app... allows you to give someone a package that runs without the hassle of them setting up jre on their system. however must be same platform as it was compiled on.
[06:39] <grenegar> welcome
[06:45] <hectorUbu> ok... solved! I got the file libswt-atk-gtk-3206.so from the eclipse CVS repository. now it works!
[06:47] <grenegar> cool