Exception lors de l'affichage d'un fichier Excel dans JFrame
Bonjour,
J'ai rencontré un problème lors de la tentative d'affichage d'un fichier excel dans un Jframe. Cette exception est du genre:
com.jniwrapper.LibraryNotFoundException.
Mon code qui permet de faire ça est le suivant:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| public jexcelTest1() throws ExcelException{
JFrame frame= new JFrame("Test application");
frame.setDefaultCloseOperation
(javax.swing.WindowConstants.EXIT_ON_CLOSE);
Container cp = frame.getContentPane();
cp.setLayout( new BorderLayout());
JWorkbook workbook = new JWorkbook();
cp.add(workbook);
frame.setBounds(100, 100, 500, 500 );
frame.setVisible(true);
} |
Les librairies ajoutées sont: comfyj-2.8.jar, jexcel-1.5.jar, jniwrap-3.8.2.jar, slf4j-api-1.5.8.jar, slf4j-simple-1.5.8.jar, winpack-3.8.2.jar
le message d'erreur complet est:
Code:
Exception in thread "main" com.jniwrapper.LibraryNotFoundException: Cannot find JNIWrapper native library (jniwrap.dll) in java.library.path: C:\Program Files\Java\jdk1.7.0_05\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\MiKTeX 2.9\miktex\bin\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Java\jre7\bin;.
J'ai jamais vu ce type d'exception :P . Si quelqu'un saurait m'aider pour résoudre ça je serai très reconnaissant.
Merci d'avance