Bonjour à tous,
je cherche une solution à mon problème qui semble être courant mais sans succès.
J'obtiens le message d'erreur suivant :
Je fais un appel à la méthode System.loadLibrary ou System.load :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 java.lang.UnsatisfiedLinkError: maMethode at package.monInterface.maMethode(Native Method) at autre.package.methodeAppelantLaPrecedente(MaClasse.java:129) at autre.package.run(Moteur.java:387) at java.lang.Thread.run(Unknown Source)
Visiblement il ne trouve pas la méthode native maMethode...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 public void chargerDLL() { try { System.loadLibrary("maLibDLL"); } catch (java.lang.UnsatisfiedLinkError e) { File file = new File(""); String os = System.getProperty("os.name"); if (os.startsWith("Win")) { try { System.load( file.getAbsolutePath() + "/lib/maLibDLL.dll"); } catch (java.lang.UnsatisfiedLinkError ule) { ... } } }
Quelqu'un aurait il connu le même problème ?
Merci beaucoup
Partager