JNI : DLL cannot be

Hello,
I am using a DLL through JNI.
Up to now, my program works perfectly on all computers and systems.
But, I encountered an error on one computer as if it couldn't find the dll (whereas it is well located):
java.lang.UnsatisfiedLinkError: D:\Projects\Java\Tool\Native.dll: Can't find dependent libraries
     at java.lang.ClassLoader$NativeLibrary.load(Native Method)Can someone help me, please ?
Note:
If I removed that dll on a system that works normally, I encountered that error:
java.lang.UnsatisfiedLinkError: no Native in java.library.path
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)

Greetings, Catharsis. I have a quite similar situation.
I am working on a project which uses a comercial API (Netica, from Norsis) through a dll (dll A). dll A interacts, through JNI, with another dll (dll B). I checked this dependency with a program to inspect DLL features (dependencies, for example).
What happens is that an error-window pops out saying that it cannot find dll B on which the one I load (dll A), depends on.
I don't use static blocks with System.loadLibrary, since this is done by a runtime variable I use, upon its initialization.
I assigned the user path variable's value for these dlls' directory to the system path's variable and still I get the error.
I used a file access monitor to find out that dll A tries to load dll B on a directory one level above the original (and correct) one.
What's strange:
1- It only happens in one recently configured Windows PC. Path variables and instalation directories are equal between PC where it works and the other where it doesn't.
2- I also tried to build JNI code for another project in the PC which prompts the error, and it yelds errors in jni.h from jdk 1.5. (so I have this feeling that something's wrong with this PCs JNI)
Note:
1- jdk was reinstalled;
2- the comercial API, whose installation sums up to extraction to install dir and path variable tuning, was reinstalled; and,
2- Eclipse's project settings are equal between the two PCs, since one project is a full copy of the other.
Any ideas?
Best regards.

Similar Messages

  • I can't install icloud on my pc i get  this error:the file 'AOSKit.dll' cannot be installed because the file cannot be found in cabinet file 'iCloud.cab'

    i can't install icloud on my pc i get  this error:the file 'AOSKit.dll' cannot be installed because the file cannot be found in cabinet file 'iCloud.cab'.this could indicate a network error, an error reading from the CD-ROM, or a problem with this package!  please help!!!!!

    “the procedure entry point kCMByteStreamNotification_AvailableLengthChanged could not be located in the dynamic link library CoreMedia.dll.”
    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    Does iTunes launch properly now?
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes

  • Installed itunes and then cannot open says MSVCR80.dll cannot be found

    I downloaded itunes but cannot open. says MSVCR80.dll cannot be found. I have downloaded twice.

    Solving MSVCR80 issue and Windows iTunes install issues.

  • Debugging Jni Dll with VC6

    I'm having problems debugging my JNI DLL hosted by a tomcat application. Starting Tomcat under the vc debugger causes a lot of first chance exceptions (0c0000005) to be thrown by JVM.DLL. This happens before my jni dll is even loaded, here's a short dump :
    Nicht abgefangene Ausnahme in java.exe (JVM.DLL): 0xC0000005: Access Violation.
    Nicht abgefangene Ausnahme in java.exe (JVM.DLL): 0xC0000005: Access Violation.
    Nicht abgefangene Ausnahme in java.exe (JVM.DLL): 0xC0000005: Access Violation.
    Nicht abgefangene Ausnahme in java.exe (JVM.DLL): 0xC0000005: Access Violation.
    Nicht abgefangene Ausnahme in java.exe (JVM.DLL): 0xC0000005: Access Violation.
    Nicht abgefangene Ausnahme in java.exe (JVM.DLL): 0xC0000005: Access Violation.
    Geladene Symbole für "D:\Projekte\Applications\Winlog.web\tomcat\bin\JGimp.dll" überein. <----- my JNI DLL
    Nicht abgefangene Ausnahme in java.exe (JVM.DLL): 0xC0000005: Access Violation.
    Geladene Symbole für "D:\Projekte\Applications\Winlog.web\tomcat\bin\CGimp.dll"
    JVM seems to catch those itself, but needless to say, this is something that shouldn't happen.
    Any ideas ?
    Regards

    805541 wrote:
    Actually, this was a statement waiting for opinions...
    I can use VC2005, VC2008, WinDebug as well, same issue.
    And the real alternative is to have strict layering in the C code itself such that you shouldn't need to debug JNI itself at all.well, that's a strange comment. Is there any valid reason not to debug a jni DLL ?1. Because you can't. Say on a production system with strict install rules.
    2. Because you don't actually need to "debug" the JNI code itself because you maintain a strict boundary layer protocol. Thus bugs can normally only be expected in the functional C code (which allows for testing via other means.)
    3. Because it is difficult to do.
    And my favorite is because I would avoid JNI completely these days and instead use a separate executable that wraps the target functionality. Thus to discrete applications both which can be tested independently.
    When I used JNI in the past I never needed to use a debugger (because I followed item 2 in the above.)
    Other than that I can only see that you have two questions.
    1. You are asking if you are doing something wrong. You might suggest googling.
    2. You know you are not doing anything wrong and there is something 'wrong' with the VM. In that case get use to it. It isn't going away. Or at least not unless you have a sales contract and/or service contract with Sun/Oracle. And if you have that then this is site is not the appropriate way to use that.

  • UnsatisfiedLinkError for JNI DLL compiled with vs2008 express

    I am trying to create a JNI DLL using Visual Studio 2008 Express.
    I have read several places where -MD causes JNI problems but from what I've read, I need this option to create the DLL properly.
    The DLL does get built cleanly and I have created a simple C application (obviously not calling the JNI functions themselves but the other functions that are in the DLL). This application runs with no problems.
    As soon as I try to use the DLL with JNI, I get an UnsatisfiedLinkError: Can't find dependent libraries.
    I have used Dependency Walker on the C application I created and it finds no errors; however, if I run it on the DLL itself, it does report an error trying to find msvcr90.dll which is in the winsxs directory under c:\windows so I assume this is the problem dependency.
    I am running this on the same computer that has Visual Studio 2008 Express SP1 installed. This is a Windows XP Service Pack 3 computer running JDK 1.6.0_14.
    Any help would be greatly appreciated.
    Thanks

    Right or wrong, I include some library files into my link statement (it's the only way I could find to clear up your question). I link in some standard window libraries as well as some of my own DLL whose functions are used by this DLL. I use a makefile to build my code.
    Here is a compile statement and the link statement for my DLL:
    cl.exe -I c:\progra~1\micros~1.0\vc\include -I c:\progra~1\mi2578~1\windows\v7.0\include -I c:/progra~1/java/jdk1.6.0_14/include -I c:/progra~1/java/jdk1.6.0_14/include/Win32 -I S:/wlw/Develop/Src/Include -I S:/wlw/Products/Src/Include -I S:/wlw/Products/Src/Include -I S:/wlw/Products/Src/LibSrc/RTA/Client/Include/Example -I S:/wlw/Products/Src/LibSrc/RTA/Client/Include/System -I S:/wlw/Products/Src/LibSrc/RTA/Client/Include/User -I S:/wlw/Products/Src/LibSrc/RTA/Server/Include/System -I S:/wlw/Products/Src/LibSrc/RTA/Server/Include/User -DRTA_DLL -D_BIND_TO_CURRENT_VCLIBS_VERSION -Zp4 -DWIN32 -D__WIN32__ -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -D_USE_32BIT_TIME_T -D_CRT_SECURE_NO_WARNINGS -nologo -W3 -Od -EHsc -MD -Z7 -c buildDate.c
    link.exe -incremental:no -nologo -debug kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib -dll -out:S:/wlw/Products/Obj/Win32/Lib/rta.dll -implib:S:/wlw/Products/Obj/Win32/Lib/rta.lib eipc_client.obj eipc_usersys.obj eips_pccc.obj eips_cnxn.obj eips_cpf.obj eips_encap.obj eips_iomsg.obj eips_rtasys.obj eips_timer.obj rta_utils.obj eips_userdf1.obj eips_userobj.obj eips_usersock.obj eips_usersys.obj jniRta.obj jniRtaPlc.obj jniRtaPlcAddress.obj qcRta.obj qcRtaPlcAddressLink.obj qcRtaPlcLink.obj qcRtaProcess.obj qcRtaRead.obj qcRtaSlcRead.obj qcRtaSlcWrite.obj qcRtaState.obj qcRtaTimer.obj qcRtaWrite.obj Q:/Develop/Obj/Win32/Lib/tcpipNet.lib Q:/Develop/Obj/Win32/Lib/linkList.lib Q:/Develop/Obj/Win32/Lib/stdUtils.lib buildDate.obj
    mt -manifest S:/wlw/Products/Obj/Win32/Lib/rta.dll.manifest -outputresource:S:/wlw/Products/Obj/Win32/Lib/rta.dll;2

  • Debugging a JNI dll

    Hello,
    anyone have any clues on how to debug a JNI dll from visual studio? Just attach to the Java process in question, and place your breakpoint?
    Regards,
    Helge Fredriksen

    1. Open your DLL project in VS, and set breakpoints as you need them
    2. Search the VS settings for one which is the "calling program". Make the calling program java.exe.
    3. Supply commandline parameters to be passed to java.exe, such that the JVM runs your java program.

  • Error  3ivx.dec.dll cannot be found

    PC system crashed and I did a system restore, losing all of my registrations for my software. Once I Deleted the old QT and downloaded the latest QT and got my Pro key today, the registration works fine, but when I go to actually open the program, I get the message that "the file 3ivx.dec.dll cannot be found - please reinstall."
    Reintalled four times today, but I still can't open the program.
    Help would be appreciated.

    the file 3ivx.dec.dll cannot be found
    That one's associated with your 3ivx:
    http://www.3ivx.com/
    Is your 3ivx product currently up to date?

  • Strong named DLL cannot be detected in Protect Mode of Reader X

    Hi, all
    I have a DLL created by C# 2.0. I used it as COM object in my plug-in of reader to communicate with 3rd-party application which is used as a host.
    Now, I have issue about "strong named DLL cannot be detected in Protect Mode of Reader X".
    If I don't make it as strong named DLL, it can be loaded in plug-in with help of white-list.
    But there will be a "Class not registered" COM error thrown if it's a strong named DLL.
    How to solve this issue? Thanks very much~
    By the way, it works fine if I disable Protect Mode. But it's not good solution to disable Protect Mode always. I am painful of this issue

    Hi,
    I'm facing the same problem.
    I wrote an very easy report. It works as intended, but when i set fillable='X' i get the error FPRUNX 001.
    FP_GET_LAST_ADS_TRACE return following:
    Begin operation:
    Render, elapsed time = 16 ms.
    #   End operation: Render, elapsed time = 89 ms.
    #   Begin operation: UsageRights, elapsed time = 89 ms.
    #   End operation: UsageRights, elapsed time = 97 ms.#
    ...and the error string of FP_GET_LAST_ADS_ERRSTR is:
    ADS: Request start time: Wed Jul 01 14:44:26 CEST 2009(200.101).
    Any idea what the problem might be?

  • "CRVS2010 Beta - BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be lo

    Creating an instance of "Report Document" writes an error in Event viewer.
    I debugged and found following line of code:
    CrystalDecisions.CrystalReports.Engine.ReportDocument reportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument()  generates error in Event Viewer as:
    "The description for Event ID ( 4353 ) in Source ( Crystal Reports ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded."
    I checked for SAP forums for this error message and the most of the times answer was that earlier versions of Crystal Reports if installed can cause this error. VM on which this issue is occuring does not has any other versions. We had uninstalled previous versions and installed CR VS2010 Beta2.
    However, I don't know the impact of this error. Any ideas?
    Thanks,
    Gulab.

    See my comments on the thread linked below. I've been getting mixed messages as far as whether the KeycodeDecoder assembly is actually used or not in CR4VS2010 but from my own analysis, the ReportDocument class does make references to types defined in that assembly. Whether these error log entries indicate something harmful or not I'm not sure but it does seem to represent the failure of proper licensing.
    Re: BusinessObjects.Licensing.KeycodeDecoder.dll could not be loaded

  • A message "MSVCR80.dll" cannot be found appears on my screen when I try to open iTunes but I am unable to do so. What can I do?

    A message "MSVCR80.dll" cannot be located to open iTunes. This occurred after I attempted to download a new iTunes update. How do I fix this issue?

    First, uninstall all Apple products from your Control Panel.  There should be 4 itmes.   1.Apple Application support, 2.Apple Mobile Device Support, 3.Apple software Update, and 4. iTunes.
    Second, reboot the system.
    Third, go to www.apple.com/itunes/ and download iTunes.  Be sure to allow to install (.exe) as an administrator.
    That's it.  You should get back to your old iTunes (latest version) and it's library.
    Message was edited by: nkg0319

  • HT5654 After updating iCloud application on Vista I am unable to access iTunes, I get the following message: (Need to reinstall application, APSDameon.exe, MSVCR80.dll cannot be found)    I need some help rectifying  this issue because I cannot reinstall

    Hello,
    I have installed the update that was sent on or around January 24th - 26th 2014, after the failure of the apple iTunes update the iCloud update was installed.  Ever since these 2 updates I am unable to open iTunes and I receive the following message: (need to reinstall iTunes application, APSDameon.exe and MISVCR80.dll cannot be found).  I have tried reinstalling iTunes and cannot do so, I really do not want and cannot afford to restore my pc to a previous date because of new data on my PC.  I am requesting assistance from support so that I can rectify this issue, thanks in advance for any assistance you may provide.    

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • In running the datalgr example, I get the error NIDAQ32.dll cannot start.... then program exits. Version of NI DAQ is 6.9.2, using MS C++.

    In running the datalgr example, I get the error NIDAQ32.dll cannot start.... then program exits. Version of NI DAQ is 6.9.2, using MS C++.

    Since this is a DAQ question more than a Measurement Studio for VC++ question, I'd recommend you repost it to the DAQ forum.
    Cheers,
    Azucena

  • Jdev crash when loading JNI dll

    Greetings:
    I have the following msg when I either
    click in "Design" tab or start debugger:
    -------------- cut here -------------
    JniPortal for D:\JDeveloper\java1.2\jre\bin\OJVM\jvm.dll reported
    Native Library D:\JDeveloper\java1.2\bin\JTACCDLL.dll already loaded in another classloader
    java.lang.UnsatisfiedLinkError: Native Library D:\JDeveloper\java1.2\bin\JTACCDLL.dll already loaded in another classloader
    void java.lang.ClassLoader.resolveClass0(java.lang.Class)
    void java.lang.ClassLoader.resolveClass(java.lang.Class)
    java.lang.Class borland.jbuilder.jot.JotClassLoader.loadClass(java.lang.String, boolean)
    java.lang.Class borland.jbuilder.jot.ClassManager.loadClass(java.lang.String, boolean)
    java.lang.Class borland.jbuilder.jot.JotPackageManager.loadClass(java.lang.String, boolean)
    int borland.jbuilder.uidesigner.$491.getType(borland.jbuilder.cmt.CmtSubcomponent, borland.jbuilder.cmt.CmtComponents)
    com.objectspace.jgl.Array borland.jbuilder.uidesigner.$491.$TGb(borland.jbuilder.cmt.CmtComponents, borland.jbuilder.cmt.CmtComponent, borland.jbuilder.cmt.CmtMethodSource)
    void borland.jbuilder.uidesigner.DesignerAddin.annotate(borland.jbuilder.cmt.CmtComponentModel, borland.jbuilder.cmt.CmtComponents)
    void borland.jbuilder.designer.DesignerManager.annotate(borland.jbuilder.cmt.CmtComponents, borland.jbuilder.cmt.CmtComponentModel)
    void borland.jbuilder.designer.DesignContext.open(borland.jbuilder.addin.Url, boolean)
    void borland.jbuilder.designer.DesignContext.changeUrl(borland.jbuilder.addin.Url)
    void oracle.jdeveloper.addin.impl.JavaMasterViewerImpl.changeViewerUrl(java.lang.String)
    void oracle.jdeveloper.addin.CustomViewer.changeUrl(java.lang.String)
    void oracle.jdeveloper.addin.JavaMasterViewer_JavaDispatch.invoke(int, borland.javaport.JavaCallStack)
    The jtaccdll.dll is my JNI dll. I am not sure
    why is it tryin to load when I launch "Design". The dll has nothing to do with
    screen objects.
    Before I put it in that place JDev was
    complaining that the dll is missing and
    refused to do anything (run debugger at all).
    Did anybody figured how to fix it? JDev
    is v3.1.1.2.
    TIA,
    V.
    null

    jasro wrote:
    Could you elaborate a little bit? Maybe provide an example? How exactly should I rename the jni wrapper functions?1. Run javah again.
    2. Verify that the signatures in the h file match those in the c/cpp file.
    3. Include the h file in the c/cpp file.

  • To add the JNI dll to the jar file and use the dll inside the jar file

    Hi to everybody,
    I am new to java.
    I want to add the JNI dll to the jar file and use it in the java class.
    How can I achieve it.
    Please help me.
    Thanks in advance.
    Regards,
    M.Sivadhas.

    can't be done because none of the known operating systems support reading binary libraries from .jar files ... you can add the binary to the jar but then you have to extract it...
    besides, mixing platform specific and platfrom independent components is not a very good idea, i'd keep the dll out of the jar to begin with

  • SB Live! CT4670-How to fix error message"DevCon32.DLL" cannot be fo

    I've re-formatted my hard dri've and am trying to re-install the software for the SB Li've! Value.
    I'm having problems with the sound card. After the installation is completed, an error message appears that reads: Audio HQ Task Bar (at the very top in the blue bar). The message below it reads: "A required DevCon32.DLL cannot be found. Make sure that the file is in the correct directory."
    Everytime the system is rebooted this message appears.
    My operating system is Windows 98SE.
    I've had my hard dri've re-formatted before and have never encountered this problem.
    I've downloaded a DevCon32.DLL file from www.dll-file.com website and tried to install it but an error message appeared stating that it cannot read the file.
    I've seen this problem on the message board but no one seemed to have responded. Can someone PLEASE help?
    Thanks

    <i>devcon32.dll
    The DeviceConfiguration Manager Library
    Description:
    devcon32.dll is the Device Configuration Manager Library. It contains a COM library that gives applications access to SoundFont and EFX functions.
    </i>
    Just try to find the devcon32.dll from the Creative Li've! installation CD, and copy it in the Creative program folder on your HD. If didn't fix the error then try to update your drivers (Creative Support-Downloads-...).
    <i>BTW: I think the file on DLL-FILE.COM was for XP Pro.</i>
    .jtpMessage Edited by jutapa on 09-08-2005 07:29 AM

Maybe you are looking for

  • What's up with Adobe Application Manager CS6?

    If I select within Pr (CS6): Help > Updates... here is the resulting update check (as expected): But... if I directly run Application Manager either from the Start Menu shortcut, or by running the executable file (PDapp.exe) in this location: C:\Prog

  • Lightroom open in elements editor raw question.

    I have just got lightroom 3.3 and it imports my .dng raw files no problem. if I use the save metadata  to file  and try to open in elements editor it open the file as a .tiff. instead of opening it as a raw file with ACR. I think the roblem is the me

  • QM in production order process

    Hi,Pls help to understand the steps to implemet the QM during in-process insp?

  • "Favorites" on the toolbar question

    I've made about 6 Folders to hold my Favorite Web sites, but every time I click to add another site it moves those Folders to the right, until they're gone from the screen. Is there any way to have the sites you add appear to the Right of those Folde

  • FRM-40734 and WC-015 in forms 9iDS,,,, Urgent

    Hi gurus,,, i Really need help on this due to the reason that my deadline is near.i have to read client's registry through our application in forms 9i DS.i am using webutil utility ,and have followed all the instructions given in it manual. i am usin