[ 
http://jira.codehaus.org/browse/MCOBERTURA-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137023#action_137023
 ] 

Rune Engseth commented on MCOBERTURA-49:
----------------------------------------

I'm having the same problem as Andreas. 
Cobertura fails when running on Teamcity - complaining about not finding java 
executable. 

Plugin really should be changed to use %JAVA_HOME% instead. 

This issue was submitted October 2006 - hope this can be fixed for the next 
version



> Fails if JRE is not on System Path
> ----------------------------------
>
>                 Key: MCOBERTURA-49
>                 URL: http://jira.codehaus.org/browse/MCOBERTURA-49
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows
> Maven-2.0.4
>            Reporter: Jon SlinnHawkins
>            Priority: Critical
>
> If the JRE installed is not of the System Path Cobertura fails to instrument 
> the classes. with the following error.
> [INFO] Preparing cobertura:cobertura                                          
>          
> [INFO] [resources:resources]                                                  
>          
> [INFO] Using default encoding to copy filtered resources.                     
>          
> [INFO] [compiler:compile]                                                     
>          
> [INFO] Nothing to compile - all classes are up to date                        
>          
> [INFO] [cobertura:instrument]                                                 
>          
> [INFO]                                                                        
>          
> [ERROR] 'java' is not recognized as an internal or external command,          
>          
> operable program or batch file.                                               
>          
>                                                                               
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> [ERROR] BUILD ERROR                                                           
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> [INFO] Unable to instrument project.                                          
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> [INFO] For more information, run Maven with the -e switch                     
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> It would be better to use the %JAVA_HOME% system variable to locate the Java 
> version to be used.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to