0

unable to load native library nddscore

Tarun 9 years ago in OpenICE updated by rahul kumar 7 years ago 1

C:\Users\ICU\Desktop\hello-openice-master>gradlew run
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:run
WARN | Unable to load native library nddscore
java.lang.UnsatisfiedLinkError: C:\Users\ICU\Desktop\hello-openice-master\.nddsh
ome\lib\x64Win64jdk\nddscore.dll: The application has failed to start because it
s side-by-side configuration is incorrect. Please see the application event log
or use the command-line sxstrace.exe tool for more detail
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.rti.dds.util.NativeInterface.extractAndLoad(NativeInterface.java:
482)
at com.rti.dds.util.NativeInterface.loadNativeLibrary(NativeInterface.ja
va:172)
at com.rti.dds.util.NativeInterface.loadNativeLibraries(NativeInterface.
java:139)
at com.rti.dds.domain.DomainParticipantFactory.<clinit>(Unknown Source)
at org.mdpnp.rtiapi.qos.IceQos.loadAndSetIceQos(IceQos.java:44)
at org.mdpnp.helloice.HelloICE.main(HelloICE.java:372)
The library nddscore.dll could not be loaded by Windows.
Make sure that the library is in your Path environment variable.
java.lang.UnsatisfiedLinkError: no nddscore.dll in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.rti.dds.util.NativeInterface.loadNativeLibrary(NativeInterface.ja
va:168)
at com.rti.dds.util.NativeInterface.loadNativeLibraries(NativeInterface.
java:139)
at com.rti.dds.domain.DomainParticipantFactory.<clinit>(Unknown Source)
at org.mdpnp.rtiapi.qos.IceQos.loadAndSetIceQos(IceQos.java:44)
at org.mdpnp.helloice.HelloICE.main(HelloICE.java:372)
Exception in thread "main" java.lang.UnsatisfiedLinkError: no nddscore.dll in ja
va.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.rti.dds.util.NativeInterface.loadNativeLibrary(NativeInterface.ja
va:168)
at com.rti.dds.util.NativeInterface.loadNativeLibraries(NativeInterface.
java:139)
at com.rti.dds.domain.DomainParticipantFactory.<clinit>(Unknown Source)
at org.mdpnp.rtiapi.qos.IceQos.loadAndSetIceQos(IceQos.java:44)
at org.mdpnp.helloice.HelloICE.main(HelloICE.java:372)
:run FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':run'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_92\bin\java.exe'' finished wi
th non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

Total time: 3.515 secs

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. Place the DLL in the current directory, in one of the directories listed in the PATH environment variable, or, best of all, in the native library search path, set using the system property java.library.path:


java -Djava.library.path=C:\MyNativeLibs MyMainClass