maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MCOMPILER-95) no such compiler 'javac' when compiling code with maven-compiler-plugin maven 2.1.0-M1 in windows Vista
Date Sat, 28 Mar 2009 10:59:13 GMT

     [ http://jira.codehaus.org/browse/MCOMPILER-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Bentmann updated MCOMPILER-95:
---------------------------------------

    Description: 
Hi Folks ,

Thanks for your great work .

when running mvn install i am getting the following error

JAVA_HOME and maven\bin in PATH is properly set .

Maven download's all pom's and jars but compilation fails .Even i had used Cygwin compilation
fails with  *no such compiler 'javac'*.

infact i can able to compile java code from command line also .

Below is the stach trace with -e option .

{noformat}
D:\SVN-Projects\gt>{color:red} mvn install -e {color} 
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building my sample prj
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
{color:red} 
[INFO] ------------------------------------------------------------------------
[INFO] No such compiler 'javac'.
[INFO] ------------------------------------------------------------------------
{color} 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: No such compiler 'javac.
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefultLifecycleExecutor.java:701)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLfecycle(DefaultLifecycleExecutor.java:538)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaltLifecycleExecutor.java:517)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHadleFailures(DefaultLifecycleExecutor.java:369)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmets(DefaultLifecycleExecutor.java:330)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLfecycleExecutor.java:181)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpljava:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: No such compiler 'javac'.
       at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompileMojo.java:271)
       at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugnManager.java:458)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefultLifecycleExecutor.java:676)
       ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 27 11:16:24 GMT 2009
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------
{noformat}
>From the maven site i can to know i need to cygwin for some versions of windows , but
still i am getting the same error .
infact i can able to complie the code through command prompt .

i download maven plugin for eclipse (gannymede) , after creating the same app , when mvn install
i am getting same no such compiler 'javac'.

for your ref i amusing below lines in pom.xml 
{code:xml}
<plugin>   
   <artifactId>maven-compiler-plugin</artifactId>   
      <configuration>   
          <source>1.5</source>   
           <target>1.5</target>   
     </configuration>   
</plugin>
{code}
Please help me in resolving issue .



  was:
Hi Folks ,

Thanks for your great work .

when running mvn install i am getting the following error

JAVA_HOME and maven\bin in PATH is properly set .

Maven download's all pom's and jars but compilation fails .Even i had used Cygwin compilation
fails with  *no such compiler 'javac'*.

infact i can able to compile java code from command line also .

Below is the stach trace with -e option .


D:\SVN-Projects\gt>{color:red} mvn install -e {color} 
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building my sample prj
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
{color:red} 
[INFO] ------------------------------------------------------------------------
[INFO] No such compiler 'javac'.
[INFO] ------------------------------------------------------------------------
{color} 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: No such compiler 'javac.
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
ultLifecycleExecutor.java:701)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
fecycle(DefaultLifecycleExecutor.java:538)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
ltLifecycleExecutor.java:517)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
dleFailures(DefaultLifecycleExecutor.java:369)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
ts(DefaultLifecycleExecutor.java:330)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
fecycleExecutor.java:181)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430

       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: No such compiler 'ja
ac'.
       at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompile
Mojo.java:271)
       at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
nManager.java:458)
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
ultLifecycleExecutor.java:676)
       ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 27 11:16:24 GMT 2009
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------

>From the maven site i can to know i need to cygwin for some versions of windows , but
still i am getting the same error .
infact i can able to complie the code through command prompt .

i download maven plugin for eclipse (gannymede) , after creating the same app , when mvn install
i am getting same no such compiler 'javac'.

for your ref i amusing below lines in pom.xml 

<plugin>   
   <artifactId>maven-compiler-plugin</artifactId>   
      <configuration>   
          <source>1.5</source>   
           <target>1.5</target>   
     </configuration>   
</plugin>

Please help me in resolving issue .



    Environment: 
Windows Vista Business version: "6.0" arch: "x86" family: "windows"  Maven version: 2.1.0-M1
Java version: 1.5.0_04

  was:
Windows Vitsa Business version: "6.0" arch: "x86" family: "windows"  Maven version: 2.1.0-M1
Java version: 1.5.0_04

        Summary: no such compiler 'javac' when compiling code with maven-compiler-plugin maven
2.1.0-M1 in windows Vista   (was: no such compiler 'javac' when compiling code with maven-compiler-plugin
maven 1.2.0-M1 in windows Vista )

> no such compiler 'javac' when compiling code with maven-compiler-plugin maven 2.1.0-M1
in windows Vista 
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-95
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-95
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows Vista Business version: "6.0" arch: "x86" family: "windows"
 Maven version: 2.1.0-M1
> Java version: 1.5.0_04
>            Reporter: ganesh gowtham
>            Priority: Blocker
>
> Hi Folks ,
> Thanks for your great work .
> when running mvn install i am getting the following error
> JAVA_HOME and maven\bin in PATH is properly set .
> Maven download's all pom's and jars but compilation fails .Even i had used Cygwin compilation
fails with  *no such compiler 'javac'*.
> infact i can able to compile java code from command line also .
> Below is the stach trace with -e option .
> {noformat}
> D:\SVN-Projects\gt>{color:red} mvn install -e {color} 
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building my sample prj
> [INFO]    task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> {color:red} 
> [INFO] ------------------------------------------------------------------------
> [INFO] No such compiler 'javac'.
> [INFO] ------------------------------------------------------------------------
> {color} 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: No such compiler 'javac.
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefultLifecycleExecutor.java:701)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLfecycle(DefaultLifecycleExecutor.java:538)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaltLifecycleExecutor.java:517)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHadleFailures(DefaultLifecycleExecutor.java:369)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmets(DefaultLifecycleExecutor.java:330)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLfecycleExecutor.java:181)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpljava:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: No such compiler 'javac'.
>        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompileMojo.java:271)
>        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugnManager.java:458)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefultLifecycleExecutor.java:676)
>        ... 16 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Fri Mar 27 11:16:24 GMT 2009
> [INFO] Final Memory: 6M/12M
> [INFO] ------------------------------------------------------------------------
> {noformat}
> From the maven site i can to know i need to cygwin for some versions of windows , but
still i am getting the same error .
> infact i can able to complie the code through command prompt .
> i download maven plugin for eclipse (gannymede) , after creating the same app , when
mvn install i am getting same no such compiler 'javac'.
> for your ref i amusing below lines in pom.xml 
> {code:xml}
> <plugin>   
>    <artifactId>maven-compiler-plugin</artifactId>   
>       <configuration>   
>           <source>1.5</source>   
>            <target>1.5</target>   
>      </configuration>   
> </plugin>
> {code}
> Please help me in resolving issue .

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

        

Mime
View raw message