java.lang.UnsatisfiedLinkError

lam
2008-01-25
2013-04-17
  • lam
    lam
    2008-01-25

    I am trying to access a vbcom in my java program
    I have added the jcom.jar into the library, and placed jcom.dll in c:/windows/system32
    however, when I run the program, I have the following error:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no jcom in java.library.path
      at java.lang.ClassLoader.loadLibrary(Unknown Source)
      at java.lang.Runtime.loadLibrary0(Unknown Source)
      at java.lang.System.loadLibrary(Unknown Source)
      at jp.ne.so_net.ga2.no_ji.jcom.IDispatch.<clinit> (IDispatch.java:287)
      at test.main(test.java:16)

    part of my code is as follows:
    public static void main (String []args){
      ReleaseManager rm = new ReleaseManager();
      try {
        IDispatch vbcom = new IDispatch (rm, "project.class"); -> this is the line with the error

      .....
    }

    please kindly advise what has gone wrong.
    Thanks so much!