Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-alpha-3
-
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%