1 Reply Latest reply on Nov 29, 2010 10:31 AM by peterj

    PATH variable on Windows uncorrectly read by JBoss

    hicsuntleones

      Hi everybody,

      I am new to the forum so please forgive me if this is not the correct section for this thread.

      I am configuring my JBoss 5.1 so that a Matlab-based application deployed as a .war might run on it.

      To do so, specific .dll files must be on the windows path since under the hood there's JNI stuff.

       

      When I try to run my application on its own everything is ok, so I assume windows path is ok.

      When a servlet deployed on JBoss calls my application as api, I get UnsatisfiedLinkException

       

      This exception is JNI-related and derives from wrong path settings.

      Appearently my path settings are ok for the standalone app but don't work for JBoss.

       

      Is there any known bug (I have found none for this release) or trick which has to be performed?

       

      Thanks in advance,

      regards

       

      Vicnenzo

        • 1. Re: PATH variable on Windows uncorrectly read by JBoss
          peterj

          Most likely the run.bat is setting the java.library.path system property. If that property is set the JVM uses it instead of the PATH env var. I recall an issue like this but cannot recall if it was specific to also using the APR library or if it was a general issue. Anyway, if this doesn't help, let me know and I can give you instructions on tracking this down.