[ 
https://issues.apache.org/jira/browse/SAMZA-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14079409#comment-14079409
 ] 

Chris Riccomini commented on SAMZA-358:
---------------------------------------

bq. seems it fails as long as there is no java 6...though I have java8.

Yea, I think the goal for this script is to test all JVMs (6, 7, 8), so it will 
fail if you're missing one. Perhaps we should add an optional switch to allow 
you to skip missing JVMs.

> check-all.sh improperly defaults to default JVM on OSX
> ------------------------------------------------------
>
>                 Key: SAMZA-358
>                 URL: https://issues.apache.org/jira/browse/SAMZA-358
>             Project: Samza
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.8.0
>            Reporter: Chris Riccomini
>            Assignee: Chris Riccomini
>             Fix For: 0.8.0
>
>
> The bin/check-all.sh script that was just added as part of SAMZA-202 is 
> supposed to use the proper JAVA_HOME for 1.6, 1.7, and 1.8 if they exist in 
> OSX.
> There is a bug in the script. If a specific version doesn't exist, the script 
> will use the default JVM version, rather than failing:
> {noformat}
> $ /usr/libexec/java_home -v 1.7
> Unable to find any JVMs matching version "1.7".
> /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home
> $ jdk_version=$(/usr/libexec/java_home -v 1.7)
> Unable to find any JVMs matching version "1.7".
> $ echo $jdk_version
> /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to