Bonjour,
J'essaie d'utiliser la libraire jdic pour ouvrir un fichier d'aide dans le navigateur par défaut du système. Je travaile sous eclipse windows et donc j'ai importé la librairie jdic.jar du site https://jdic.dev.java.net/ .

Ensuite je teste avec :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
try {
            Desktop.browse(new URL("file:C:/spec.htm"));
        } catch (MalformedURLException e) {
            e.printStackTrace() ;
        } catch (DesktopException e) {
            e.printStackTrace() ;
        }
eclipse treconnait bien la méthode browse mais à l'execution, il me retourne l'erreur suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jdic in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1670)
	at java.lang.Runtime.loadLibrary0(Runtime.java:821)
	at java.lang.System.loadLibrary(System.java:991)
	at org.jdesktop.jdic.desktop.internal.impl.WinAPIWrapper.<clinit>(Unknown Source)
	at org.jdesktop.jdic.desktop.internal.impl.WinUtility.getVerbCommand(Unknown Source)
	at org.jdesktop.jdic.desktop.internal.impl.WinBrowserService.show(Unknown Source)
	at org.jdesktop.jdic.desktop.Desktop.browse(Unknown Source)
	at cvc.gui.scm.SCMFrame.openHelper(SCMFrame.java:337)
[...]
Si quelqu'un connait jdic, je suis preneur... merci

[ Modéré par Bulbo ]
Ajout d'un tag dans le titre
Les Règles du Forum