Configure JBoss server lookup a particular folder for external libraries

Solution Verified - Updated -

Issue

Trying to access a suite of services (DLLs) made available in a public folder through my Java app using the Java Native Interface JNI). In Tomcat I can append this folder to my Windows path or add a VM argument -Djava.library.path="\\host\directory;${env_var:PATH}"
and the services can be found.

However when I try and deploy to the JBoss server, our attempts to amend the JBoss service run.bat to mimic this configuration has failed. The property java,library.path seems to default to ..\lib Would like to to know how to configure a JBoss server to go and look in a particular folder for external libraries?

Environment

  • JBoss Enterprise Application Platform (EAP) 5.0
  • Windows

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.