I have my application deployed in jboss server that depends on some thirdparty jar, lib and dll files for execition.
My application works if I manually add the directory containing jar, dll, and lib to the Path environment variable. But fails if I remove the directory from path.
My build file copies those jar, dll and lib to JBOSS_HOME\server\default\lib but still my application cant find them on run time.
Q1. Can we deploy dll and lib or only jars can be deployed?
Q2. If yes what should I do? and how?
Thanks in advance
Try setting -Djava.library.path=path/to/dlls as a JVM argument. If you use the JBoss startup scripts, you can set this in either run.bat/run.sh or run.conf.