UnsatisfiedLinkError

vincenzo
2012-02-20
2013-06-12
  • vincenzo
    vincenzo
    2012-02-20

    Hi, I have problem running my application under windows 7 64 bit.
    I generated with Launch4j an exe file adding in the same directory of the exe file DLL but still I get UnsatisfiedLinkError.

    This is the xml created by Launch4J  and at the bottom there is the log file. Thank you.

    <launch4jConfig>
      <dontWrapJar>false</dontWrapJar>
      <headerType>gui</headerType>
      <jar>C:\works\output\SMAM.jar</jar>
      <outfile>C:\works\SMAM64\bin\smam64.exe</outfile>
      <errTitle></errTitle>
      <cmdLine></cmdLine>
      <chdir></chdir>
      <priority>normal</priority>
      <downloadUrl>http://java.com/download</downloadUrl>
      <supportUrl></supportUrl>
      <customProcName>false</customProcName>
      <stayAlive>false</stayAlive>
      <manifest></manifest>
      <icon></icon>
      <singleInstance>
        <mutexName>smam</mutexName>
        <windowTitle>SMAM installation</windowTitle>
      </singleInstance>
      <jre>
        <path>../jre</path>
        <minVersion></minVersion>
        <maxVersion></maxVersion>
        <jdkPreference>jreOnly</jdkPreference>
        <opt>-Djava.library.path=.</opt>
      </jre>
    </launch4jConfig>

    CmdLine: C:\works\SMAM64\bin\smam64.exe -l4j-debug
    WOW64: yes
    Bundled JRE: ..\jre
    Check launcher: C:\works\SMAM64\bin\..\jre\bin\javaw.exe (OK)
    Launcher: C:\works\SMAM64\bin\..\jre\bin\javaw.exe
    Launcher args: -Djava.library.path=. -jar "C:\works\SMAM64\bin\smam64.exe"
    Args length: 59/32768 chars
    Exit code: 0

     
  • vincenzo
    vincenzo
    2012-02-21

    Problem solved. I was using a 64 bit library but I was running in 32 mode.
    Thanks