java - Can't load native library on other systems -
i'm developing application makes use of libjahspotify. program running on desktop (windows 7), when attempting run on laptop (windows 8.1) or on other intel nuc (windows 7) getting below error:
exception in thread "main" java.lang.unsatisfiedlinkerror: c:\temp\jahspotify.dll: can't find dependent libraries @ java.lang.classloader$nativelibrary.load(native method) @ java.lang.classloader.loadlibrary0(classloader.java:1929) @ java.lang.classloader.loadlibrary(classloader.java:1814) @ java.lang.runtime.load0(runtime.java:809) @ java.lang.system.load(system.java:1083) @ jahspotify.jahspotifynativeloader.<init>(jahspotifynativeloader.java:90) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:408) @ java.lang.class.newinstance(class.java:438) @ jahspotify.impl.jahspotifyimpl.<clinit>(jahspotifyimpl.java:730) @ jahspotify.services.jahspotifyservice.initialize(jahspotifyservice.java:56) @ jahspotify.services.jahspotifyservice.getinstance(jahspotifyservice.java:26) @ jahspotify.services.jahspotifyservice.initialize(jahspotifyservice.java:39) @ net.functionseven.divicantus.spotify.spotify.init(spotify.java:29) @ net.functionseven.divicantus.divicantus.main(divicantus.java:20)
the native-jar in libjahspotify supposed load dlls automatically, not. @ point seems jahspotify.dll not loading. if manually copy jahspotify.dll folder native-jar delete it, supposed to.
i've recompiled libjahspotify several times , checked multiple times both java , dlls x86. i've attempted load manually system.load(), similar error below.
exception in thread "main" java.lang.unsatisfiedlinkerror: can't load library: c:\temp\jahspotify.dll @ java.lang.classloader.loadlibrary(classloader.java:1817) @ java.lang.runtime.load0(runtime.java:809) @ java.lang.system.load(system.java:1083) @ net.functionseven.divicantus.divicantus.main(divicantus.java:24)
i'm @ loss happening.
most cause second system missing dlls jahspotify.dll requires. can check dlls required dependency walker (http://www.dependencywalker.com/) , try manually putting these alongside jahspotify.dll. commonly missing dlls c++ redistributable packages , such.
Comments
Post a Comment