Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-231

Spaces in PATH env variable stop plexus.bat from running

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-alpha-3
    • 1.0-alpha-4
    • None
    • None
    • Windows XP

    Description

      If the PATH environment variable has spaces in it, you get NoClassDefFound exceptions when running plexus.bat.

      The solution is to put quotes around the -Dplexus.system.path=%PATH% segment of the startup command.

      ie:
      %PLEXUS_JAVA_EXE% %PLEXUS_OPTS% classpath %PLEXUS_HOME%\core\boot\classworlds*.jar "-Dclassworlds.conf=%PLEXUS_HOME%\conf\classworlds.conf" -Dplexus.core=%PLEXUS_CORE% -Dplexus.system.path=%PATH% -Djava.io.tmpdir=%PLEXUS_TMPDIR% -Dplexus.home=%PLEXUS_HOME% org.codehaus.classworlds.Launcher %PLEXUS_CMD_LINE_ARGS%

      becomes

      %PLEXUS_JAVA_EXE% %PLEXUS_OPTS% classpath %PLEXUS_HOME%\core\boot\classworlds*.jar "-Dclassworlds.conf=%PLEXUS_HOME%\conf\classworlds.conf" -Dplexus.core=%PLEXUS_CORE% "-Dplexus.system.path=%PATH%" -Djava.io.tmpdir=%PLEXUS_TMPDIR% -Dplexus.home=%PLEXUS_HOME% org.codehaus.classworlds.Launcher %PLEXUS_CMD_LINE_ARGS%

      Attachments

        Activity

          People

            jvanzyl Jason van Zyl
            mgaylard Mark Gaylard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: