Forum Stats

  • 3,760,308 Users
  • 2,251,683 Discussions
  • 7,871,056 Comments

Discussions

Unableto load library 'c': The specified module could not be found

3313967
3313967 Member Posts: 1
edited Sep 15, 2016 9:32AM in Java User Groups Discussions

Hi All,

I am trying to run a java application(using bat) as a windows service via yajsw wrapper.

I am using below combination[1],  and getting exception[2] while same wrapper.conf is working in another windows instance where I am using the same versions as below.

[1]
yajsw-stable-11.11
jdk1.7.0_51
Windows Server 2012/6.2/amd64

[2]
INFO|-1/0|"Test Server"|16-09-01 15:25:59| gobler terminated OUTPUT -1 java.lang.NullPointerException
INFO|-1/0|"Test Server"|16-09-01 15:25:59|gobler terminated OUTPUT -1Exception in thread "yajsw.controller-2" java.lang.UnsatisfiedLinkError: Unableto load library 'c': The specified module could not be found.
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:368)
at com.sun.jna.Native.loadLibrary(Native.java:353)
at org.rzo.yajsw.os.posix.PosixProcess$CLibrary.<clinit>(PosixProcess.java:60)
at org.rzo.yajsw.os.posix.PosixProcess.destroy(PosixProcess.java:558)
at org.rzo.yajsw.wrapper.AbstractWrappedProcess.stopOsProcess(AbstractWrappedProcess.java:2082)
at org.rzo.yajsw.wrapper.AbstractWrappedProcess.stopInternal(AbstractWrappedProcess.java:1996)
at org.rzo.yajsw.wrapper.AbstractWrappedProcess.restartInternal(AbstractWrappedProcess.java:2550)
at org.rzo.yajsw.wrapper.WrappedJavaProcess$2.fire(WrappedJavaProcess.java:557)
at org.rzo.yajsw.controller.AbstractController.handleListeners(AbstractController.java:108)
at org.rzo.yajsw.controller.AbstractController.setState(AbstractController.java:146)
at org.rzo.yajsw.controller.jvm.JVMController$4$1.run(JVMController.java:701)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
INFO|-1/0|"Test Server"|16-09-01 15:25:59| gobler terminated ERROR -1 java.lang.NullPointerException
INFO|-1/0|"Test Server"|16-09-01 15:25:59|gobler terminated ERROR -1

I checked the System.getProperty("os.name") and it give "Windows Server 2012"

Any help appreciated.

Thanks

Chaminda

Answers