Cannot find DLL - URGENT

Hello All,
This is a really urgent question. Please answer as soon as possible.
I bought a DLL from a software vendor. Lets call that DLL as "A". Knowing that i cannot access that DLL directly with Java, I created my own DLL which is acting as a bridge between my java application and DLL A. Lets call this DLL as B.
I tried both these DLLs with a standalone application and it worked fine. So now the scenarion is that there is a class, lets call it C, it calls methods from DLL B and DLL B in turn calls methods from DLL A.
Now I want to use this class C with a Servlet. The problem, as it looks to me, is that when used with the servlet class C finds DLL B, but DLL B is unable to find DLL A.
I am saying this because initially i got the error saying "Cannot find B in java.library.path". I specified the path of DLL B in path variable of Windows (I am using Windows XP) after whcih the next error is something like it cannot find the method. I am copying a portion of exception below:
java.lang.UnsatisfiedLinkError: QALoc_Startup
     at gmm2064.QAS.QASApi.QALoc_Startup(Native Method)
     at gmm2064.QAS.QASApi.EastingNorthingToPostCode(QASApi.java:78)
     at gmm2064.Calculator._generateIntervalReport(Calculator.java:256)
     at gmm2064.Calculator._generateCompleteIntervalReport(Calculator.java:288)
     at gmm2064.Calculator.getReport(Calculator.java:474)
     at gmm2064.ReportGenerationServlet.displayReport(ReportGenerationServlet.java:141)
     at gmm2064.ReportGenerationServlet.doPost(ReportGenerationServlet.java:65)
If anybody has an answer to this question, please reply as soon as possible. I need an answer ideally right now.
Thanks in advance

I totaly agree with bschauwe. I also spend several hours of searching in the past for UnSatisfiedLinkError's.
Always mention the complete package (if you use packages and you should) in your javah -jni statement when you try to create your C-header file. This was in most cases the problem I ran into.
What you also could do is not use System.loadLibrary("<yourDLL>"); but replace it with the System.load("<full path to your DLL>"); to point to your DLL.
Kind regards and good luck using JNI...
Kurt

Similar Messages

  • Excutable cannot find dll

    In my workstation I build an executable, "MUTS Rev L3.1", in LabVIEW 8.6 However, after the build folder "MUTS Rev L3.1" is installed on a different PC on the test floor and the operator clicks on the executable icon the application launch is stopped because it cannot find "phidget21.dll" Once the file is located in the build folder the lauch operation continues and the application gets loaded. How can I prevent the launch operation from prompting the operator to find phidget21.dll?
    Best regards,
    Jaime Arevalo
    Test Engineer
    Micropac Industries
    Solved!
    Go to Solution.

    Jeff, thanks for the input. Indeed, marking the .dll as "always included" during the executable build works. What I am trying to accomplish is to have the icon I created for this application to launch the LV application rather than using a shortcut to the application. When I pin the icon to the Start menu, double clicking on it launches the app w/out any issues. However, if I chose to move the icon to the desktop then, when the app is being loaded, it stops to search for a servomotor dll. It searches for this dll in C:\Documents and Settings\PCname\Desktop\instr.lib. The operator needs to access C:\Documents and Settings\PCName\ Desktop\build folder name\data to find the dll in question (phidget21.dll). Once this is done the LV app launches without any issues.
    I am tryingto find a way to place on the desktop a user defined icon (not a shortcut), associated with the LV application exec. Then the floor operator only needs to click on the icon to launch the LV application. I am not sure if this can be done easily on Windows XP. For now I will continue using the shortcut on the desktop to access the app.
    BTW, we purchased the servomotor phidget21.dll when we purchased the device from the vendor (Phidgets)

  • Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Depend on which country you are in btw, for the US this should be 61 black and 61 tricolor. For most of europe this will be 301 black and 301 tri color. So to be sure tell me from which country you are.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • Crystal Reports for VS2010 cannot find crdb_adoplus.dll

    I installed Crystal Reports for VS2010 successfullly,   At least the report editor works without a problem and the viewer control can be placed on a form.  My problem is when I try to run it, I get the following exception:
    System.IO.FileNotFoundException was unhandled
      Message=Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
      Source=mscorlib
      FileName=file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll
      FusionLog=WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    StackTrace:
           at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
           at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
           at System.Reflection.Assembly.LoadFrom(String assemblyFile)
           at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)
      InnerException:
    I used Windows Explorer and found that crdb_adoplus.dll is present in the directory, so it must be a "related file"  Has any one seen this error before and if so, do you know how to fix it??

    See if [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533323335333433333332%7D.do] KB resolves the issue.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Error message when starting: McShield.dll: the system cannot find the file specified - what do I do to solve this?

    When I start Firefox, the following message appears before the home page opens:
    "COMMONSHELL: McShield.dll
    The specified resource language ID cannot be found in the image file.
    McShield.dll: The system cannot find the file specified."
    I click OK, Firefox opens normally and everything seems to operate as expected, no further problems.

    hello, the error message is obviously coming from one of the installed mcafee extensions. please directly contact mcafee technical support - they can likely give you more detailed guidance and are the only ones who can fix bugs or make necessary adjustments in the addon.

  • Satellite L770 - I cannot find an adobepdf.dll

    Hello
    I've just taken delivery of a L770 laptop and am now busy installing my programs.
    Adobe Acrobat Professional v8.00 asks for adobepdf.dll to be installed from the Windows Vista CD-Rom, which I don't have because this laptop has Windows 7 Home edition 64 bit installed.
    I cannot find an adobepdf.dll on this computer, nor rather worryingly can I find any cab files. I did not receive a windows cd as I did with my first Toshiba laptop many years ago - am I now stuck?
    I thought that all computers had to have the windows files supplied?
    regards
    Denise

    Of course you cannot be happy with that but adobepdf.dll is not a part of the Windows OS and the Acrobat Pro was not a part of the image so I assume the Acrobat Pro has to be installed once again in order to include this
    Did you check the solution provided by Adobe?
    Did you check the link above?
    *Solution for Windows 7 64-bit*
    +Manually extract the file "adobepdf.dll_64" from the data1.cab file before installing Acrobat. When the prompt appears, navigate to this file and select it.+
    +1. Navigate to the folder that contains the setup.exe file for your Acrobat 8 installation.+
    +2. Locate the file "data1.cab" and open it (this may require a third party compression utility, such as WinZip).+
    +3. Inside the content listings, locate the file "adobepdf.dll_64" and copy it to your desktop.+
    +4. Run the installer setup.exe and when the prompt appears, choose browse and select the file you copied to the desktop.+
    +Note: If the file cannot be selected, change the file type drown down in the dialog box to "Files of All Types", or rename the file to "adobepdf.dll" by removing "_64" from the end of the file extension.+

  • Cannot find OracleInProcServer.dll in the 64 bit Oracle 11g r2

    We have been using OracleInProcServer.dll in our applications to access oracle spatial features. However, with the new 64 bit oracle 11g r2, I cannot find the OracleInProcServer.dll file.
    I have tried to use the old OracleInProcServer.dll (32 bit from oracle 11g r1 32 bit), it got the message: "The 'MSDAORA' provider is not registered on the local machine"
    Any help on this is greatly appreciated.

    Hi,
    MSDAORA is Microsoft's OLEDB Provider for Oracle, not OracleInProcServer (which is Oracle Objects for OLE - OO4O).
    In either case though, the answer is the same for both products (which are unrelated btw). Both Microsoft's OLEDB provider, and Oracle Objects for OLE, are not available as 64 bit. If you need to use them on a 64 bit OS, you'll need to run the process as 32 bit and install 32 bit Oracle client software.
    You may want to consider eventually porting the app over to ODP.NET, which can take advantage of Spatial via the UDT support.
    Hope it helps,
    Greg
    Edited by: gdarling on Jul 6, 2010 10:14 AM
    Also, fyi, the OO4O forum is located at OO4O and Wizards [ARCHIVE]

  • Cannot start HP Pavilion laptop due to Winlogon.dll error cannot find SHLWAPI.dll

    Hello,
    We are getting a winlogon.dll error that it cannot find shlwapi.dll.
    First off, we do not have recover CDs, we do not want to reboot with a complete recovery as we have data we need on this computer.
    We cannot logon at all, it gives the error and then you have to say okay and it stays at a black screen. We have tried repairing from the start up menu, we have tried recovering a previous start up point, we can get to the f8 c prompt but the different commands offered from other website forum tech supports are not recognizable.
    At this point, we are dead in the water. If there were some way to start the computer, get into our pictures, files, etc. to just download and save those then fine we can do a complete new installation.
    Please help.
    Thank you,
    Kelly

    Hi Kelly,
    You need to download and install ImgBurn first.  Then download the Image ( ISO ) for Ubuntu.  When done, use ImgBurn to write the Ubuntu ISO to a blank CD and then just follow the rest of the guide.
    Try the following links for these Two downloads.
    ImgBurn.
    Ubuntu
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • When creating installer files, there is an error:the system cannot find the customResource2052.dll file, what's the problem?

    I am using labview2009, when I create a installer, there is an error report as blow:
     Error: Windows SDK function returned an error. (Error code -12)
    Error accessing a resource module "E:\工作资料\项目资料\绿盾\builds\Untitled Project 1\...\Volume\supportfiles\customResource2052.dll".
    The system cannot find the file specified.
    *** Error Details:
    Error in MDF API function: _MDFBuildDist_Build
    Error in MetaToolbox::UpdateResourceString.
             strId: 3; New String:     ; LangId: 2052
    Windows function LoadLibraryEx returned an error. Error code: 2
    *** End Error Report

    Hi super008,
    The error can be due to some improper installation of a driver or any NI SW that the Installer requires.
    Have you recently installed or Uninstalled any NI Software ?
    Also -
    You can see in the KB below -
    That it could also happen due to some incompatibility with the .NET framework or adding exception in the AntiVirus.
    SDK Error Code -12 When Building a LabVIEW Installer or Installing LabVIEW
    http://digital.ni.com/public.nsf/allkb/AFC375154EFBD6AE8625760B005FB723?OpenDocument
    One more question :
    Do you have any idea what is this resource :
    E:\工作资料\项目资料\绿盾\builds\Untitled Project 1\...\Volume\supportfiles\customResource2052.dll    ????
    is "Untitled Project 1" your project ?

  • Photoshop Elements 11 cannot find Qtcore4.dll

    Photoshop Elements 11 cannot find Qtcore4.dll. I have removed the program and re-installed twice and have run sfc/scannow. I still get the error on starting the program. A web search does not give any definite answers

    Several people have reported this and it’s difficult to pin down. But is the application working OK. If so, the error message is best ignored even though I know it can get annoying.

  • "Cannot find nwlocale.dll" error when running 16-bit application

    Hi There,
    I'm encountering the error message "Cannot find nwlocale.dll" when
    activating a 16-bit application (standalone version) in a workstation
    using Windows 98 and Novell Client v4.83. This only happened in a
    particular workstation but other is working fine. Is there any
    areas/reasons/possibilities that I can have a check?
    Any information can help, please feel free to share.
    Thank you very much.
    Best Regards,
    Shannon

    On 7/21/2005 [email protected] wrote:
    > using Windows 98 and Novell Client v4.83.
    Incorrect Novell Client version for that OS.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • What to do on the message " AppleSyncNotifier.exe – Cannot find starting point of [sqlite3_wal_checkpoint] from DLL SQLite3.dll

    컴퓨터를 부팅하면 다음 메시지가 나오네요 " AppleSyncNotifier.exe – 시작시점 sqlite3_wal_checkpoint을(를) DLL SQLite3.dll에서 찾을 수 없습니다."
    Upon booting, I see the message " AppleSyncNotifier.exe – Cannot find starting point of [sqlite3_wal_checkpoint] from DLL SQLite3.dll

    With that one, I'd first try uninstalling and reinstalling your MobileMe Control Panel for Windows. Does that clear up the error?

  • Cannot find NT Oracle Server DLL OCI.DLL

    Hello
    I am getting the following error when trying to execute a DS job from Designer in the error log.
    "Cannot find NT Oracle Server DLL <OCI.DLL>. Please make sure that Oracle has been installed and the PATH variable points to the correct lib directories."
    1. DS is on Windows
    2. DS repo is sql server
    3. Source is Oracle 10g db, target is Sql server db.
    4. Oracle 32 bit full client is installed on the job server (10.2.0.1.0)
    5. I have checked the SAP note 1295918 and I think it does not apply to the version of Oracle client we have and also it is already working in our SANDBOX environment, also our install location is NOT under the c:\program files\  folder
    We are seeing this error only in our DEV DS box, we have a similar setup in the SANDBOX DS and that job executes successfully. I have compared the oracle client, DS and job server configurations between the 2 boxes and they are the same.
    - SQLPLUS connection works from both the servers
    - I am able to connect to the database and look at all the tables within DS designer from both the servers and import them into the DS repo
    - No ORACLE_HOME was set when the installation was done. I created a ORACLE_HOME variable and assigned the install location, but still getting the same error
    Any help is appreciated
    Thanks
    Dinesh

    Dinesh,
    When you added ORACLE_HOME to the environment, the environment settings were updated for the OS.  However, the job server still had the old settings in memory.  That is why you needed to restart the job server before DS would recognize ORACLE_HOME.

  • Cannot find NT oracle server DLL oci.dll (BODI 1112172)

    Guys,
    I am trying to install Data Services 4.1 client tools and I get the error message Cannot find NT oracle server DLL oci.dll (BODI 1112172). I checked the "Path" variable in the system parameter and it contains the folder that has the oci.dll file. Does anyone have ideas on this?
    Thanks,
    Doniv

    So Here is the screenshot of the exact error I am facing. I am able to log in to the DS client tools using Windows AD and able to see the list of repos on the server. However, when I select any of the repos I get the error message below.
    The "Path" roles in the evironment variable as seen in the screenshot below has the folder that contains oci.dll file.
    Help is greatly appreciated.

  • URGENT: Cannot Find DBCA on Red Hat's Oracle installation

    I desperately need to find the DBCA (class / executable) or, better yeat is to introduce you to my need:
    We need to run RMAN to BackUp And Restore a DataBase.
    The RMAN Works with or is better used through the use of the “Enterprise Manager Console”, which needs to connect to an OMS (Oracle Management Server), the OMS is configured by the EMCA executable, and the EMCA Works find until it needs to use the DBCA, which cannot find, and I cannot find it anyware.
    Please help us out, should I try to create the tablespaces my self? (don’t think so, I’m kind of green when it comes to DBA tasks, but I am trying to help out. (through otn)

    0) I was surprised to see that you answer me, you have allway gave me EXCELENT answers and very courteously.
    1) The URGENT: was intended to express the necesity of the TOPIC not of the actual situation, I am certain that would it come to that (calling oracle support) my superiors would have call.
    2) When I wrote "which cannot find, and I cannot find it anyware." It means a Search throughout the Hard Drives of the machine. and could not find it (DBCA.class, DBCA.bin, DBCA.*, etcetara). I might/most likely are mistaken, nevertheless that was the intetion of my topic.
    3) I manage through a workarround that is Creating the OMS Repository TABLESPACES myself.
    Thanks for your answers, and don't mistake this reply as being rude or anything like it. I have but the most gratitud towards all the help that you have provided me in other ocations.
    Thanks again for all,
    Frank

Maybe you are looking for

  • [Solved] Changed Graphics Driver/Xorg.conf, Font Size Now Different

    Hello, I just got the Catalyst 9.4 drivers working on my laptop (Lenovo T400) since the open source ones just can't keep up (even with DRI). The problem is now my fonts are all different sizes (or not loading). I was thinking this might be because of

  • RDLC - Group Header Continued on next page...

    Hi All, I have a requirment in RDLC, if the group rows exceeds more than one page, I need to add a content at the bottom of page and next page first row, like below Group              ------Recrods-----------              ------Recrods----------- Gro

  • Windows 8 Smart File Association Concept

    I have a feature for providing to Microsoft. See the following: We know Windows 8 tries to integrate the desktop and the touch interfaces into one OS. However, I think Microsoft forgets to update "Windows File Association," accordingly. For example,

  • [Solved] Recommend a package with pacman for "Command Not Found"

    Is there a way to get Pacman to recommend a package name like in ubuntu, for example: If I were to type in a terminal ifconfig and it said "Command not found" Could Pacman recommend the package net-tools? Last edited by jack9099 (2011-08-03 14:33:39)

  • Firmware File Not Found

    Hello All: I would appreciate any assistance you could offer. I attempted to upgrade my iPod 60 GB to version 1.2. Somewhere along the line, a file was corrupted and now I cannot either update or restore the iPod. When I select either function I rece