You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hilal Ram (JIRA)" <ji...@codehaus.org> on 2009/07/02 06:47:05 UTC

[jira] Commented: (MCOMPILER-30) Compiler fork executable fails when the path has spaces

    [ http://jira.codehaus.org/browse/MCOMPILER-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182201#action_182201 ] 

Hilal Ram commented on MCOMPILER-30:
------------------------------------

I'm also facing this issue. Simply Because I have the Oracle installed on Program files and it's PATH is causing the build to fai
--- Any Quick Fix on this ???



[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Failure executing javac,  but could not parse the error:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
Failure executing javac,  but could not parse the error:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.


        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:699)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:519)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:4
1)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.


> Compiler fork executable fails when the path has spaces
> -------------------------------------------------------
>
>                 Key: MCOMPILER-30
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-30
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Carlos Sanchez
>
> JAVA_1_3_HOME=C:\Program Files\Java\jdk1.3.1_18
>         <plugin>
>           <artifactId>maven-compiler-plugin</artifactId>
>           <configuration>
>             <fork>true</fork>
>             <compilerVersion>1.3</compilerVersion>
>             <executable>${JAVA_1_3_HOME}/bin/javac</executable>
>           </configuration>
>         </plugin>
> Fails with
> Failure executing javac,  but could not parse the error:
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.

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