[ 
https://issues.apache.org/jira/browse/BUILDR-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723230#action_12723230
 ] 

Daniel Spiewak commented on BUILDR-289:
---------------------------------------

I'm pretty sure that rt.jar is part of the JRE spec, so there's really no way 
that it *can't* be included.  I see the error message when attempting to use 
Commands::Java.java e.g. for running Specs:

  Running tests in gll-combinators 
  Running java org.apache.buildr.SpecsSingletonRunner
  sh: /bin/java: No such file or directory

> Verify JAVA_HOME for Improved Error Messages
> --------------------------------------------
>
>                 Key: BUILDR-289
>                 URL: https://issues.apache.org/jira/browse/BUILDR-289
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3.4
>            Reporter: Daniel Spiewak
>            Assignee: Daniel Spiewak
>             Fix For: 1.3.5
>
>
> Buildr uses the JAVA_HOME environment variable for a number of core tasks.  
> However, if that variable does not point to a valid JDK, the result will be a 
> failure at some point with a generally confusing error message (usually 
> something on the order of " /bin/java does not exist").  We should actually 
> check to make sure that JAVA_HOME is valid before attempting to use it for 
> the first time.  This check could be as simple as looking for rt.jar and a 
> few of the executables.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to