Continuum

Spaces in PATH env variable stop plexus.bat from running

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-alpha-3
  • Fix Version/s: 1.0-alpha-4
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP
  • Number of attachments :
    0

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%

Activity

Hide
Mark Gaylard added a comment -

Also - on a slightly related note, the getting started page says you run plexus with the command

bin/plexus.bat ..\conf\plexus.xml

this should just be

bin\plexus.bat

Show
Mark Gaylard added a comment - Also - on a slightly related note, the getting started page says you run plexus with the command bin/plexus.bat ..\conf\plexus.xml this should just be bin\plexus.bat
Hide
Trygve Laugstol added a comment -

Reopening to set fix for version.

Show
Trygve Laugstol added a comment - Reopening to set fix for version.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: