=== doko__ [n=doko@dslb-088-073-079-174.pools.arcor-ip.net] has joined #ubuntu-java === pombreda [n=pombreda@c-71-198-188-62.hsd1.ca.comcast.net] has joined #ubuntu-java === pombred1 [n=pombreda@c-71-198-188-62.hsd1.ca.comcast.net] has joined #ubuntu-java === pombreda [n=pombreda@c-71-198-188-62.hsd1.ca.comcast.net] has joined #ubuntu-java === pombred1 [n=pombreda@c-71-198-188-62.hsd1.ca.comcast.net] has joined #ubuntu-java === grenegar [n=renegarg@net35.arts.umanitoba.ca] has joined #ubuntu-java === hectorUbu [n=hector@Toronto-HSE-ppp3697661.sympatico.ca] has joined #ubuntu-java [06:01] hello... [06:02] hi [06:02] could I get some help here related to running a Java app in Ubuntu? [06:03] will try :) [06:03] thanks! [06:04] 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] this is the error output: http://papernapkin.org/pastebin/view/2067 [06:04] I'm using Sun-Java 1.5 [06:06] so file 'swt-atk-gtk-3206' is in current directory, right? [06:07] yes [06:07] its named libswt-atk-gtk-3206.so [06:08] does your CLASSPATH include . in it (current directory) [06:08] this is the command line: java -Xmx128m -Djava.library.path=. -jar sunrise-desktop.jar [06:10] i think that any file *.so is not a java library. i expected swt-atk-gtk-3206.jar instead [06:12] mmm... [06:13] *.so is shared object file - a binary file used by operating system or apps i think... not for java object code. [06:14] *.so does not require a runtime environment like jre to interpret object code [06:16] 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] ok... I just realized that the name of the file is libswt-gtk-3206.so without the atk... is that why> [06:19] 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] sorry i don't use swt myself [06:20] ok, no problem! [06:21] I could try recompiling the app from source... but I don't know how to compile java apps [06:21] is not with ./configure & make, right? [06:22] no, that is for native compile on linux [06:22] for java there is command 'javac' to compile however i think problem is with jre installation, not your java app [06:23] I installed Java from the ubuntu repository [06:23] and tried reinstalling [06:23] I have other Java app that is running fine [06:23] it looks like is about paths... but I don't know what could be [06:24] 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] maybe the other app uses swing instead of swt for gui (assuming it is a gui app at all)? [06:25] it is gui, yes [06:25] swing and swt are two different libraries for making a gui with java (if you don't know) [06:25] I found this file: /usr/lib/jni/libswt-atk-gtk-3139.so [06:26] but it's 3139 and not 3206 [06:27] I created a symlink changing the name to 3206, but didn't work, hehe [06:29] hmm. found a package libswt3.1-gtk-java [06:29] try: sudo apt-get install libswt3.1-gtk-java [06:29] it's installed already [06:30] maybe remove and re-install? [06:30] done... and the same [06:32] that package installs a second one called libswt3.1-gtk-jni, which contains the file libswt-atk-gtk-3139.so [06:32] but Sunrise is looking for libswt-atk-gtk-3206.so [06:32] that could be the problem... [06:35] 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] no problem, thank you for your time. [06:36] my pleasure [06:36] just one more question, do you know what the directory /usr/lib/jni is for? [06:37] is that used by sun-java? [06:37] some info here: http://java.sun.com/j2se/1.4.2/docs/guide/jni/ [06:38] thanks [06:39] 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] welcome [06:45] ok... solved! I got the file libswt-atk-gtk-3206.so from the eclipse CVS repository. now it works! [06:47] cool === pombred1 is now known as twocv === pombreda [n=pombreda@c-71-198-188-62.hsd1.ca.comcast.net] has joined #ubuntu-java === grenegar [n=renegarg@net35.arts.umanitoba.ca] has left #ubuntu-java [] === marcin_ant [n=marcin@194.114.146.122] has joined #ubuntu-java === grenegar [n=renegarg@net35.arts.umanitoba.ca] has joined #ubuntu-java === grenegar [n=renegarg@net35.arts.umanitoba.ca] has left #ubuntu-java []