java - How to configure YAJSW to find jnidispatch.dll on the disk? -
we using yajsw wrap our java application windows service. while testing workstation images there warning corporate mcafee antivirus because on launching service, jnidispatch.dll copied jna-4.1.0.jar new name in temporary folder.
adding dll signature antivirus rules prevents showstopping error severe warning pops every time.
we tried copying jnidispath.dll c:\dllfolder , adding wrapper.conf line:
wrapper.java.additional.4 = -djna.boot.library.path=c:/dllfolder/
we added c:\dllfolder windows system %path% , rebooted windows.
however when monitoring windows service start, can still see dll being extracted jar instead , antivirus complains.
the comments in yajsw code native.java say:
when jna classes loaded, native shared library (jnidispatch) loaded well. attempt made load paths defined in <code>jna.boot.library.path</code> (if defined), system library path using {@link system#loadlibrary}, unless <code>jna.nosys=true</code>. if not found, appropriate library extracted class path (into temporary directory if found within jar file) , loaded there, unless <code>jna.noclasspath=true</code>.
what step missing?
i confirm resolved following actions:
1) added -djna.nounpack=true wrapper.conf
2) deleted 2 jnidispatch.dll 32-bit , 64-bit dlls jar
3) placed dlls on windows path
please note install windows service, jnidispatch.dll required.
big technomage!
Comments
Post a Comment