DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    RYan Guest

    JNI Not loading DLL


    I keep getting the message:

    java.lang.UnsatisfiedLinkError: no IACERapid in java.library.path

    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)

    at java.lang.Runtime.loadLibrary0(Runtime.java:749)

    at java.lang.System.loadLibrary(System.java:820)

    at com.Firstlogic.IACERapid.main(IACERapid.java:38)

    When I try to load my DLL using System.loadLibrary. I have the dll in the
    same directory. I've also tried to make sure all dependant dll's are there
    as well. Do I possibly have to do a load library on the dll's it's depenent
    on as well or will it take care of that? What could be my problem? I have
    another simple hello world dll that works just fine. The only difference
    is that this dll is dependant on others?

    Thanks,
    Ryan

  2. #2
    Ryan Guest

    Re: JNI Not loading DLL


    I even tried writing a LoadLibrary app in C++ and that works fine with my
    dll. Java just doesn't seem to want to load it. Any ideas???

    Thanks,
    Ryan

    "RYan" <ryanc@firstlogic.com> wrote:
    >
    >I keep getting the message:
    >
    >java.lang.UnsatisfiedLinkError: no IACERapid in java.library.path
    >


    > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    >
    > at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    >
    > at java.lang.System.loadLibrary(System.java:820)
    >
    > at com.Firstlogic.IACERapid.main(IACERapid.java:38)
    >
    >When I try to load my DLL using System.loadLibrary. I have the dll in the
    >same directory. I've also tried to make sure all dependant dll's are there
    >as well. Do I possibly have to do a load library on the dll's it's depenent
    >on as well or will it take care of that? What could be my problem? I have
    >another simple hello world dll that works just fine. The only difference
    >is that this dll is dependant on others?
    >
    >Thanks,
    >Ryan



  3. #3
    Sankar Guest

    Re: JNI Not loading DLL


    copy the .dll to windows/system32 folder
    (OR)
    give the full path of the .dll in System.LoadLibrary("...\xxx.dll")

    Both will work fine.




    "Ryan" <ryanc@firstlogic.com> wrote:
    >
    >I even tried writing a LoadLibrary app in C++ and that works fine with my
    >dll. Java just doesn't seem to want to load it. Any ideas???
    >
    >Thanks,
    >Ryan
    >
    >"RYan" <ryanc@firstlogic.com> wrote:
    >>
    >>I keep getting the message:
    >>
    >>java.lang.UnsatisfiedLinkError: no IACERapid in java.library.path
    >>

    >
    >> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    >>
    >> at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    >>
    >> at java.lang.System.loadLibrary(System.java:820)
    >>
    >> at com.Firstlogic.IACERapid.main(IACERapid.java:38)
    >>
    >>When I try to load my DLL using System.loadLibrary. I have the dll in

    the
    >>same directory. I've also tried to make sure all dependant dll's are there
    >>as well. Do I possibly have to do a load library on the dll's it's depenent
    >>on as well or will it take care of that? What could be my problem? I

    have
    >>another simple hello world dll that works just fine. The only difference
    >>is that this dll is dependant on others?
    >>
    >>Thanks,
    >>Ryan

    >



  4. #4
    Sankar Guest

    Re: JNI Not loading DLL


    copy the .dll to windows/system32 folder
    (OR)
    give the full path of the .dll in System.LoadLibrary("...\xxx.dll")

    Both will work fine.

    "RYan" <ryanc@firstlogic.com> wrote:
    >
    >I keep getting the message:
    >
    >java.lang.UnsatisfiedLinkError: no IACERapid in java.library.path
    >
    > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    >
    > at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    >
    > at java.lang.System.loadLibrary(System.java:820)
    >
    > at com.Firstlogic.IACERapid.main(IACERapid.java:38)
    >
    >When I try to load my DLL using System.loadLibrary. I have the dll in the
    >same directory. I've also tried to make sure all dependant dll's are there
    >as well. Do I possibly have to do a load library on the dll's it's depenent
    >on as well or will it take care of that? What could be my problem? I have
    >another simple hello world dll that works just fine. The only difference
    >is that this dll is dependant on others?
    >
    >Thanks,
    >Ryan



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links