[00:20] hello everyone....I need some help [00:21] I've been trying to get java-gnome working [00:23] every time I try to run my app an exception java.lang.UnsatisfiedLinkError: no gtkjni-4.0 in java.library.path [00:24] I can't get it to work [00:26] I suspect that this requires the installation of libjava-gnome-java, but wonder why we also have libgtk-jnu and lingtk-java-dev. We do need to clean up the duplicates one of these days. [00:32] I need help with java-gnome!!! [00:32] I can't get it to work properly [00:34] Every time I try to run an example or my own code it an exception is thrown saying that there is no gtk-4.0 in java library.path [00:34] rivers22_, You need to install libjava-gnome-java [00:34] rivers22_, Next time you get a similar error, you can use a command like `apt-file search gtkjni` to find out which package you need. [00:36] I can't find libjava-gnome-java in synaptic???? [00:38] Ah. It seems to only be in 8.10 beta. Sorry. You might try libgtk-jni, but that only provides libgtkjni-2.10.s0 [00:39] Okay I have it install [00:42] I have libgtkjni-2.10.so and libgktjni.so in /usr/lib/jni/ and libgtkjni-4.0.so in /usr/local/lib [00:43] how could i set gtkjni-4.0 in java.library.path??? [00:45] when I run the java-gnome "make demo" it runs perfectly but when I try to compile and run it manually it does not work.... [00:47] Now you've gotten outside of what I know well enough to help. Sorry. [00:48] do you have java-gnome working? [00:49] No, but I also don't have it broken (I've not tried to play with it) [00:50] okay, so are you using and IDE to program in java? [00:50] No. [00:50] I play with netbeans some, but I haven't done any significant development in Java in some time. [00:51] what programming language do you use if I may ask?? [00:52] Mostly make. A bit of shell. [00:52] I tend to do packaging, and merging of patches. Not so much development of code. [00:53] Some of that is for Java, so I hang out here, and sometimes have useful things to say, but not once it gets into real code. [00:54] is that more difficult than development code?? I've never done any packagin or merge any patches..... [00:54] For code questions, I usually recommend people visit ##java, but it seems like you have something in-between a code issue and an issue with how java-gnome is installed in Ubuntu, so I don't know if you are in the right place. [00:54] It's mostly different, rather than being either easier or more difficult. [00:55] Most of it is like plugin development : you know the system that will be calling the code, so you write to a given set of callbacks and make sure you are in the correct state at each point. [00:56] Instead of corresponding to interpretation of mouse/keyboard/video stream/etc. events, the callbacks are things like "compile package", "install package", "remove package". [00:57] don't you have to code all of those instructions in a language??? [00:57] Yep. Like I said, mostly make or shell. [00:59] hey do you know why is taking so long for the apt-file to update??? I've just install it and ran the apt-file update command but it seems its taking a lot of time.. [00:59] It needs to download a list of every file in each of the 20,000 packages. Takes a while. [01:00] After this, it's *really* easy to find which package has stuff, but the first update is slow. [01:00] Okay, that's good to know, I was getting worry..... [01:00] Once you've updated the first time, it shoulld be quicker, as later updates are only updating the lists in the security or updates repos, so a few hundred packages at most, rather than all 20,000. [01:06] okay the apt-file update has finish... i run the apt-file search gtkjni command and I got back this: libgtk-java-dev: /usr/lib/jni/libgtkjni.so libgtk-jni: /usr/lib/jni/libgtkjni-2.10.so [01:07] but I already have them install, what I need to know is how to set the java.library.path [01:07] Right. Those are the two packages that contain files containing "gtkini", so it's likely that one or both of them are the ones you want. [01:07] Don't you just pass a CLASSPATH to javac? [01:08] yes, that's what i've been doing [01:13] okay I got it working!!!!!! yeah!@@! [01:15] Cool! Nice job. [01:15] I just had to use -Djava.library.path=/usr/local/lib and then -classpath [01:32] okay well thanks, this is the first time I've use IRC, it's pretty cool....thanks a lot persia you're a genius!!!