intellij idea - java.lang.UnsatisfiedLinkError: Failed to load OneTick Java API native library libjomd.so/jomd.dll -
i trying run application uses onetick. needs dll files work, 1 of jomd.dll. working in intellij. put file location in vm arguments list :
-djava.library.path=c:\users\one_tick\bin
but shows me following error:
exception in thread "main":org.springframework.beans.factory.beancreationexception: error creating bean name 'a' defined in class path resource [x/y/z/a.xml]: bean instantiation via constructor failed; nested exception java.lang.unsatisfiedlinkerror: failed load onetick java api native library libjomd.so/jomd.dll. path library can specified via -djava.library.path command line option or via ld_library_path/path. if library in path, ensure dependencies loadable, , java binary compatible library (e.g. ensure don't load 64-bit library within 32-bit java or vice versa).c:\users\one_tick\bin\jomd.dll: can't find dependent libraries.
but don't error when make "c:\users\one_tick\bin" current working directory.
this tried:
- put "c:\users\one_tick\bin" in path environment variable. didn't work.
- added directory "c:\users\one_tick\bin" directory dependency in intellij module settings. didn't work.
- tried dependency walker see if dependencies missing. got this:
dependency walker output on jomd.dll
- i went through http://javarevisited.blogspot.com/2012/03/javalangunsatisfiedlinkerror-no-dll-in.html , didn't clue how solve this.
5.i deleted jomd.dll temp file, located in appdata. didn't help.
can me this. don't understand how dies work when change current working directory "c:\users\one_tick\bin".
Comments
Post a Comment