You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by "Mark Gaylard (JIRA)" <ji...@codehaus.org> on 2005/07/15 06:04:57 UTC

[jira] Created: (CONTINUUM-231) Spaces in PATH env variable stop plexus.bat from running

Spaces in PATH env variable stop plexus.bat from running
--------------------------------------------------------

         Key: CONTINUUM-231
         URL: http://jira.codehaus.org/browse/CONTINUUM-231
     Project: Continuum
        Type: Bug
    Versions: 1.0-alpha-3    
 Environment: Windows XP
 Reporter: Mark Gaylard


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%

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (CONTINUUM-231) Spaces in PATH env variable stop plexus.bat from running

Posted by "Trygve Laugstol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-231?page=all ]

Trygve Laugstol updated CONTINUUM-231:
--------------------------------------

    Fix Version: 1.0-beta-1

> Spaces in PATH env variable stop plexus.bat from running
> --------------------------------------------------------
>
>          Key: CONTINUUM-231
>          URL: http://jira.codehaus.org/browse/CONTINUUM-231
>      Project: Continuum
>         Type: Bug
>     Versions: 1.0-alpha-3
>  Environment: Windows XP
>     Reporter: Mark Gaylard
>     Assignee: Jason van Zyl
>      Fix For: 1.0-beta-1

>
>
> 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%

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Reopened: (CONTINUUM-231) Spaces in PATH env variable stop plexus.bat from running

Posted by "Trygve Laugstol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-231?page=all ]
     
Trygve Laugstol reopened CONTINUUM-231:
---------------------------------------


Reopening to set fix for version.

> Spaces in PATH env variable stop plexus.bat from running
> --------------------------------------------------------
>
>          Key: CONTINUUM-231
>          URL: http://jira.codehaus.org/browse/CONTINUUM-231
>      Project: Continuum
>         Type: Bug
>     Versions: 1.0-alpha-3
>  Environment: Windows XP
>     Reporter: Mark Gaylard
>     Assignee: Jason van Zyl
>      Fix For: 1.0-beta-1

>
>
> 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%

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (CONTINUUM-231) Spaces in PATH env variable stop plexus.bat from running

Posted by "Trygve Laugstol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-231?page=all ]
     
Trygve Laugstol closed CONTINUUM-231:
-------------------------------------

    Resolution: Fixed

> Spaces in PATH env variable stop plexus.bat from running
> --------------------------------------------------------
>
>          Key: CONTINUUM-231
>          URL: http://jira.codehaus.org/browse/CONTINUUM-231
>      Project: Continuum
>         Type: Bug
>     Versions: 1.0-alpha-3
>  Environment: Windows XP
>     Reporter: Mark Gaylard
>     Assignee: Jason van Zyl
>      Fix For: 1.0-beta-1

>
>
> 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%

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (CONTINUUM-231) Spaces in PATH env variable stop plexus.bat from running

Posted by "Mark Gaylard (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/CONTINUUM-231?page=comments#action_42856 ] 

Mark Gaylard commented on CONTINUUM-231:
----------------------------------------

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

> Spaces in PATH env variable stop plexus.bat from running
> --------------------------------------------------------
>
>          Key: CONTINUUM-231
>          URL: http://jira.codehaus.org/browse/CONTINUUM-231
>      Project: Continuum
>         Type: Bug
>     Versions: 1.0-alpha-3
>  Environment: Windows XP
>     Reporter: Mark Gaylard

>
>
> 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%

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (CONTINUUM-231) Spaces in PATH env variable stop plexus.bat from running

Posted by "Trygve Laugstol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-231?page=all ]
     
Trygve Laugstol closed CONTINUUM-231:
-------------------------------------

    Resolution: Fixed

Fixed by Jason. 

http://svn.plexus.codehaus.org/trunk/plexus-tools/plexus-runtime-builder/src/main/resources/org/codehaus/plexus/builder/templates/plexus-bat.vm?rev=2321&view=auto

> Spaces in PATH env variable stop plexus.bat from running
> --------------------------------------------------------
>
>          Key: CONTINUUM-231
>          URL: http://jira.codehaus.org/browse/CONTINUUM-231
>      Project: Continuum
>         Type: Bug
>     Versions: 1.0-alpha-3
>  Environment: Windows XP
>     Reporter: Mark Gaylard
>     Assignee: Jason van Zyl

>
>
> 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%

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (CONTINUUM-231) Spaces in PATH env variable stop plexus.bat from running

Posted by "Trygve Laugstol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/CONTINUUM-231?page=all ]

Trygve Laugstol reassigned CONTINUUM-231:
-----------------------------------------

    Assign To: Jason van Zyl

> Spaces in PATH env variable stop plexus.bat from running
> --------------------------------------------------------
>
>          Key: CONTINUUM-231
>          URL: http://jira.codehaus.org/browse/CONTINUUM-231
>      Project: Continuum
>         Type: Bug
>     Versions: 1.0-alpha-3
>  Environment: Windows XP
>     Reporter: Mark Gaylard
>     Assignee: Jason van Zyl

>
>
> 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%

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira