
Hello,
I have a problem when trying to display a Excel file in a Jframe. The exception is like this: com.jniwrapper.LibraryNotFoundException.
here is my code
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);
}
And the exception message is:
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;.
I already added the following libraries: 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
Can you clarify this for me please.
Abdousoft.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.