Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4418

run.bat should include %PATH% in java.library.path when bin/native exists

    XMLWordPrintable

Details

    • Low
    • Hide

      run.bat should say this

      if exist "%JBOSS_HOME%\bin\native" set PATH=%JBOSS_HOME%\bin\native;%PATH%
      if exist "%JBOSS_HOME%\bin\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%PATH%"

      or even just this

      if exist "%JBOSS_HOME%\bin\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%JBOSS_HOME%\bin\native;%PATH%"

      Show
      run.bat should say this if exist "%JBOSS_HOME%\bin\native" set PATH=%JBOSS_HOME%\bin\native;%PATH% if exist "%JBOSS_HOME%\bin\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%PATH%" or even just this if exist "%JBOSS_HOME%\bin\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%JBOSS_HOME%\bin\native;%PATH%"

    Description

      run.bat says this

      if exist "%JBOSS_HOME%\bin\native" set PATH=%JBOSS_HOME%\bin\native;%PATH%
      if exist "%JBOSS_HOME%\bin\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=%JBOSS_HOME%\bin\native

      Which removes %PATH% from the java.library.path and thus breaks anything else which has DLLs on the PATH, such as Oracle OCI drivers.

      Attachments

        Activity

          People

            dandread1@redhat.com Dimitrios Andreadis
            djr667_jira David Richmond (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: