Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/06/2005, à 20:09

thom

[Résulo] java-gnome

Bonjour,
j'essaie d'utiliser java-gome, mais je n'y arrive pas...
J'ai installé
libgtk2-java libgnome2-java libglade2-java
Par contre, pas moyen de trouver : libgconf-java, mais je ne  sais pas si il est important...

Quand j'essaie d'exécuter un exemple, toujours cette meme erreur:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no gtkjava2.4 in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
	at java.lang.Runtime.loadLibrary0(Runtime.java:822)
	at java.lang.System.loadLibrary(System.java:992)
	at org.gnu.gtk.Gtk.<clinit>(Gtk.java:104)
	at HelloWorld.main(HelloWorld.java:14)

Cette erreur est apparement courante, il est résovable en passant par un script : http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/SettingLDLibPath

Malheuresement, que mettre ici dedans :

# Set the location of where you installed the java-gnome libs (.so files). 
# WHY? 
# Since Java-Gnome uses JNI to talk to the native GTK/Gnome/Glade/etc. libraries, 
# each java-gnome module has a native library associated with its jar via which 
# this communication is performed. Therefore, java-gnome CANNOT execute without knowing 
# where to find these native libs. JG_LIBS=/build/gnome2/lib

Si quelqu'un utilise java-gnome, je lui serait reconnaisant s'il pouvait me dire comment il a tout configurer...
Merci...

Dernière modification par thom (Le 29/06/2005, à 20:06)


-> Ubuntu on a Sony Vaio VNG-FS115B
-> Wificonfig is a little script aimed to ease the switching between networks, for people who have 2 network cards : a wired one and a wireless one.

Hors ligne

#2 Le 27/06/2005, à 23:13

nikko

Re : [Résulo] java-gnome

Je suis allé faire un tour sur http://packages.ubuntu.com , il en ressort que pour installer libgnome2-java, tu as dû installer libgtk2-java et libgnome2-jni.

libgnome2-java et libgtk2-java fournissent des jars dans /usr/share/java/ (liste des fichiers ici et ici).
libgnome2-jni fournit des libs natives (.so) dans /usr/lib/jni/ (liste de fichiers ici).

Je dirais donc:
JG_LIBS=/usr/lib/jni/

Hors ligne

#3 Le 29/06/2005, à 12:06

thom

Re : [Résulo] java-gnome

Merci NikKo big_smile


-> Ubuntu on a Sony Vaio VNG-FS115B
-> Wificonfig is a little script aimed to ease the switching between networks, for people who have 2 network cards : a wired one and a wireless one.

Hors ligne

#4 Le 29/06/2005, à 14:37

thom

Re : [Résulo] java-gnome

Encore un truc,  je n'ai pas de problèmes avec les lib gtk et glade, mais avec gnome bien...
Les prog qui importent org.gnu.gnome.* me font cette erreur :

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jni/libgnomejava2.8.so.2.8.2: libgtkjava2.4.so: cannot open shared object file: No such file or directory

Pourtant, voici le résultat d'un ll /usr/lib/jni/ :

...
-rw-r--r--  1 root root  636040 2004-12-22 04:46 libgnomejar2.8.so.2.8.2
lrwxrwxrwx  1 root root      24 2005-06-24 09:14 libgnomejava2.8.so -> libgnomejava2.8.so.2.8.2
...

Quelqu'un a une idée ?


-> Ubuntu on a Sony Vaio VNG-FS115B
-> Wificonfig is a little script aimed to ease the switching between networks, for people who have 2 network cards : a wired one and a wireless one.

Hors ligne

#5 Le 29/06/2005, à 17:26

nikko

Re : [Résulo] java-gnome

Salut,

il te manque libgtkjava2.4.so apparemment.

Est-ce que libgtk2-jni est installé?

Nicolas

Hors ligne

#6 Le 29/06/2005, à 18:23

thom

Re : [Résulo] java-gnome

nikko a écrit :

Salut,

il te manque libgtkjava2.4.so apparemment.

Est-ce que libgtk2-jni est installé?

Nicolas

Oui, voici le contenu de mon dossier /usr/lib/jni :

lrwxrwxrwx  1 root root      23 2005-06-24 09:14 libgladejar2.8.so -> libgladejar2.8.so.2.8.2
-rw-r--r--  1 root root   93776 2004-12-22 04:46 libgladejar2.8.so.2.8.2
lrwxrwxrwx  1 root root      24 2005-06-24 09:14 libgladejava2.8.so -> libgladejava2.8.so.2.8.2
-rw-r--r--  1 root root    6432 2004-12-22 04:46 libgladejava2.8.so.2.8.2
lrwxrwxrwx  1 root root      23 2005-06-24 09:14 libgnomejar2.8.so -> libgnomejar2.8.so.2.8.2
-rw-r--r--  1 root root  636040 2004-12-22 04:46 libgnomejar2.8.so.2.8.2
lrwxrwxrwx  1 root root      24 2005-06-24 09:14 libgnomejava2.8.so -> libgnomejava2.8.so.2.8.2
-rw-r--r--  1 root root  147224 2004-12-22 04:46 libgnomejava2.8.so.2.8.2
lrwxrwxrwx  1 root root      26 2005-06-24 09:14 libgnomevfsjar2.7.so -> libgnomevfsjar2.7.so.2.7.4
-rw-r--r--  1 root root  100216 2004-12-22 04:46 libgnomevfsjar2.7.so.2.7.4
lrwxrwxrwx  1 root root      27 2005-06-24 09:14 libgnomevfsjava2.7.so -> libgnomevfsjava2.7.so.2.7.4
-rw-r--r--  1 root root   14252 2004-12-22 04:46 libgnomevfsjava2.7.so.2.7.4
lrwxrwxrwx  1 root root      29 2005-06-24 09:14 libgnomevtejar0.11.so -> libgnomevtejar0.11.so.0.11.13
-rw-r--r--  1 root root   49112 2004-12-22 04:46 libgnomevtejar0.11.so.0.11.13
lrwxrwxrwx  1 root root      30 2005-06-24 09:14 libgnomevtejava0.11.so -> libgnomevtejava0.11.so.0.11.13
-rw-r--r--  1 root root   11368 2004-12-22 04:46 libgnomevtejava0.11.so.0.11.13
lrwxrwxrwx  1 root root      25 2005-06-24 09:14 libgtkhtmljar2.4.so -> libgtkhtmljar2.4.so.2.4.3
-rw-r--r--  1 root root   74056 2004-12-22 04:46 libgtkhtmljar2.4.so.2.4.3
lrwxrwxrwx  1 root root      26 2005-06-24 09:14 libgtkhtmljava2.4.so -> libgtkhtmljava2.4.so.2.4.3
-rw-r--r--  1 root root   16736 2004-12-22 04:46 libgtkhtmljava2.4.so.2.4.3
lrwxrwxrwx  1 root root      21 2005-06-24 09:14 libgtkjar2.4.so -> libgtkjar2.4.so.2.4.6
-rw-r--r--  1 root root 3449484 2004-12-22 04:46 libgtkjar2.4.so.2.4.6
lrwxrwxrwx  1 root root      22 2005-06-24 09:14 libgtkjava2.4.so -> libgtkjava2.4.so.2.4.6
-rw-r--r--  1 root root  614340 2004-12-22 04:46 libgtkjava2.4.so.2.4.6

-> Ubuntu on a Sony Vaio VNG-FS115B
-> Wificonfig is a little script aimed to ease the switching between networks, for people who have 2 network cards : a wired one and a wireless one.

Hors ligne

#7 Le 29/06/2005, à 19:42

nikko

Re : [Résulo] java-gnome

Si c'est à l'exécution, tu peux essayer de faire un lien symbolique vers libgnomejava2.8 dans le répertoire "normal" du jre $JAVAROOT/jre/lib/i386.

D'après un post sur le forum java-gnome-developper.

Hors ligne

#8 Le 29/06/2005, à 20:05

thom

Re : [Résulo] java-gnome

Merci, j'ai résolu le prob en faisant

thom@cixi:/usr/lib/j2sdk1.5-sun/jre/lib/i386$ sudo ln -s /usr/lib/jni/libgtkjava2.4.so
thom@cixi:/usr/lib/j2sdk1.5-sun/jre/lib/i386$ sudo ln -s /usr/lib/jni/libgnomejava2.8.so

Ps : tu travailles souvent avec java-gnome ?


-> Ubuntu on a Sony Vaio VNG-FS115B
-> Wificonfig is a little script aimed to ease the switching between networks, for people who have 2 network cards : a wired one and a wireless one.

Hors ligne

#9 Le 29/06/2005, à 20:12

nikko

Re : [Résulo] java-gnome

thom a écrit :

Ps : tu travailles souvent avec java-gnome ?

Euh, non. Il faudrait que je m'y mette...

Par contre je travaille bien avec les moteurs de recherche (celui des paquets ubuntu, ou google...) wink

Et merci pour la commande exacte. Ça servira peut-être à quelqu'un.

Nicolas

Hors ligne