OVH Cloud OVH Cloud

JDIC + Linux

1 réponse
Avatar
alexandre cartapanis
Bonjour,
voila, j'ai un petit souci quand j'utilise JDIC. JDIC permet de creer
une "trayicon" (en bas a droite sous windows, dans la zone de
notification). Je lance la demo, qui fonctionne sans probleme. Puis
j'utilise alors la librarie pour faire ma propre trayicon. Et la ca
marche pas!!
Voila l'erreur:
java.lang.UnsatisfiedLinkError:createAppletWindow
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.createAppletWindow(Native
Method)
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.init(GnomeTrayAppletService.java:177)
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.<init>(GnomeTrayAppletService.java:60)
org.jdesktop.jdic.tray.internal.impl.GnomeTrayIconService.<init>(GnomeTrayIconService.java:52)
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(ServiceManagerStub.java:57)
org.jdesktop.jdic.tray.internal.ServiceManager.getService(ServiceManager.java:71)
org.jdesktop.jdic.tray.TrayIcon.<init>(TrayIcon.java:76)
org.jdesktop.jdic.tray.TrayIcon.<init>(TrayIcon.java:54)
fr.macymed.modulo.module.tray.TrayModule.doStart(TrayModule.java:123)
fr.macymed.modulo.framework.Module.start(Module.java:190)
fr.macymed.modulo.platform.loader.ModuleManager.start(ModuleManager.java:212)
fr.macymed.modulo.platform.loader.ModuleManager.startAll(ModuleManager.java:363)
fr.macymed.modulo.platform.Platform.start(Platform.java:314)
fr.macymed.modulo.platform.PlatformRunner.startPlatform(PlatformRunner.java:162)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
fr.macymed.modulo.platform.PlatformLauncher.startPlatform(PlatformLauncher.java:209)
fr.macymed.modulo.platform.PlatformLauncher.initialize(PlatformLauncher.java:111)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
fr.macymed.modulo.platform.launcher.Main.main(Main.java:89)

Bref, il ne me trouve pas la methode native
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.createAppletWindow,
alors que je suis sur que la librarie est bien chargée (j'utilise mes
propres classloader, donc je verifie :)). Par contre, avec les meme
fichier jar/.so, la demo fonctionne!!
Je ne comprends pas pourquoi, surtout que le meme code (exactement, mais
avec les jar/.dll adapté) fonctionne.
Si quelqu'un a la moindre idée du pourquoi du comment ...

1 réponse

Avatar
alexandre cartapanis
Bonjour,
voila, j'ai un petit souci quand j'utilise JDIC. JDIC permet de creer
une "trayicon" (en bas a droite sous windows, dans la zone de
notification). Je lance la demo, qui fonctionne sans probleme. Puis
j'utilise alors la librarie pour faire ma propre trayicon. Et la ca
marche pas!!
Voila l'erreur:
java.lang.UnsatisfiedLinkError:createAppletWindow
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.createAppletWindow(Native
Method)
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.init(GnomeTrayAppletService.java:177)
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.<init>(GnomeTrayAppletService.java:60)
org.jdesktop.jdic.tray.internal.impl.GnomeTrayIconService.<init>(GnomeTrayIconService.java:52)
org.jdesktop.jdic.tray.internal.impl.ServiceManagerStub.getService(ServiceManagerStub.java:57)
org.jdesktop.jdic.tray.internal.ServiceManager.getService(ServiceManager.java:71)
org.jdesktop.jdic.tray.TrayIcon.<init>(TrayIcon.java:76)
org.jdesktop.jdic.tray.TrayIcon.<init>(TrayIcon.java:54)
fr.macymed.modulo.module.tray.TrayModule.doStart(TrayModule.java:123)
fr.macymed.modulo.framework.Module.start(Module.java:190)
fr.macymed.modulo.platform.loader.ModuleManager.start(ModuleManager.java:212)
fr.macymed.modulo.platform.loader.ModuleManager.startAll(ModuleManager.java:363)
fr.macymed.modulo.platform.Platform.start(Platform.java:314)
fr.macymed.modulo.platform.PlatformRunner.startPlatform(PlatformRunner.java:162)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
fr.macymed.modulo.platform.PlatformLauncher.startPlatform(PlatformLauncher.java:209)
fr.macymed.modulo.platform.PlatformLauncher.initialize(PlatformLauncher.java:111)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
fr.macymed.modulo.platform.launcher.Main.main(Main.java:89)

Bref, il ne me trouve pas la methode native
org.jdesktop.jdic.tray.internal.impl.GnomeTrayAppletService.createAppletWindow,
alors que je suis sur que la librarie est bien chargée (j'utilise mes
propres classloader, donc je verifie :)). Par contre, avec les meme
fichier jar/.so, la demo fonctionne!!
Je ne comprends pas pourquoi, surtout que le meme code (exactement, mais
avec les jar/.dll adapté) fonctionne.



Desolé, petite erreur de frappe, il faut lire: je ne comprends pas
pourquoi, surtout que le meme code (exactement, mais avec les jar/.dll
adapté) fonctionne parfaitement sous windows.


Si quelqu'un a la moindre idée du pourquoi du comment ...