This discussion is archived
1 Reply Latest reply: Dec 2, 2009 11:32 AM by 843804 RSS

Exception "no jacob-1.15-M2-x86 in java.library.path"

843804 Newbie
Currently Being Moderated
I want to run an Excel command, in a java program, so I searched the web and I concluded to JACOB.

I have copied "jacob.jar" in "C:\Program Files\Java\jre6\lib\ext" and "jacob-1.15-M2-x86.dll" in "C:\Program Files\Java\jre6\bin".
I have also added the directory "C:\Program Files\Java\jre6\lib\ext" in the CLASSPATH and the directory "C:\Program Files\Java\jre6\bin" in the system PATH.
I have also added the "jacob.jar" in the "Libraries" of my project in NetBeans 6.7.1

The library seems to be successfully installed, as I can use some classes and methods without errors, having first imported the following:
import com.jacob.activeX.*;
But when trying to run the program, I encounter the following Exception:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jacob-1.15-M2-x86 in java.library.path
Have I done something wrong?
Does the PC need to be restarted to see the new addition in the system Path?

Edited by: exquisitenick on Dec 2, 2009 11:07 AM