login about faq

We are supporting a client who is using Tectia Server/Client 6.2.04 , and through ssh-tectia-sdk.jar is connecting to the Tectia server via the JAVA application .

Operating system used : Windows Server 2008 . We would appreciate any suggestions to solve the issue that is being faced. Thanking you in advance

WrapperSimpleApp: Encountered an error running main: java.lang.UnsatisfiedLinkError: Can't load library: C:\WINNT\TEMP\libsshsftjni3341929494598108256.dll java.lang.UnsatisfiedLinkError: Can't load library: C:\WINNT\TEMP\libsshsftjni3341929494598108256.dll at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1677) at java.lang.Runtime.load0(Runtime.java:770) at java.lang.System.load(System.java:1005) at com.ssh.sft.SftBase.loadNativeLibrary(SftBase.java:65) at com.ssh.sft.SftBase.init(SftBase.java:70) at com.ssh.sft.SftBase.<clinit>(SftBase.java:24) at com.company.catsmdp.SftpFileTransfer.<init>(Unknown Source) at com.company.catsmdp.FtpTransferFactory.getFtpComponent(Unknown Source) at com.company.catsmdp.PQFControllerDB.<init>(Unknown Source) at com.company.catsmdp.PQFControllerClient.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136) at java.lang.Thread.run(Thread.java:619) WrapperSimpleApp: start(args) end. Main Completed=true, exitCode=1

asked Dec 09 '11 at 13:44

vivek's gravatar image


edited Aug 11 '14 at 20:39

martinb's gravatar image

martinb ♦

As well as checking what your are putting/setting the path to the DLL in the correct environment variable you should also check the following:

•The DLL you are loading has all its dependencies satisfied. In other words, if this DLL depends on other DLLs, make sure those DLLs can also be found.

•If the DLL being loaded uses a manifest to specify a specific DLL, ensure that DLL (of the version specified in the manifest) is also on the machine (or in the GAC, if required) and can be found

•Check that all DLL functions referred in your Java code are correctly defined and exported and export the same datatypes as those your Java code is expecting. This won't stop the DLL loading, but it may well mess up the next stage - resolving link addresses or making functions that should work, fail in unexpected ways.

Lots of fun to be had with this - lots of little things to trip you up. I had to deal with this a few years back messing with a text to speech package (in C & C++ in a DLL) working with different versions of Java with old and new JNI styles. What a mess


answered Dec 27 '11 at 23:43

renae's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Dec 09 '11 at 13:44

Seen: 3,539 times

Last updated: Aug 11 '14 at 20:39

Related questions

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.