-
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
-
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
-
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
>
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks