How to Include java.library.path in EAP 6?

Solution Unverified - Updated -

Issue

  • The java.library.path is supplied as a runtime property while starting jboss. The parameter does not seem to be properly received resulting in an UnsatisfiedLinkError.
  • Where would be the appropriate place to pass this parameter in?
  • Is there a possibility to provide a JBoss module to load the native libraries without changing the application?
  • Can we access native libraries deployed as a custom JBoss module in the deployed application?
  • In the Jboss EAP 5.1.0 there is a definition of "# Setup JBoss Native library path" in the JBOSS_HOME/bin/run.sh. We put some C-libraries under this location such as "$JBOSS_HOME/../../jboss-ep-5.1/native" . But in Jboss EAP 6.3.3, there is no run.sh any more but only the standalone.sh. But in this file there is no any definition of '# Setup JBoss Native library path'. How to do in Jboss EAP 6.3.3? Where to put the C-libraries? How to make the Jboss instanz to find this location?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

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.