Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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%
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