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

    • Workaround Description:
      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%"
    • Estimated Difficulty:
      Low

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dimitris Dimitris Andreadis
                Reporter:
                djr667 David Richmond
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: