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

Alejandro Abdelnur commented on HADOOP-10290:
---------------------------------------------

Alternatively, you can have the following env VARD defined in your shell: 
{{_JAVA_OPTIONS=-Djava.awt.headless=true}}. This solves the problem. The only 
issue is if you are starting any app, Java based from the shell, you'll have to 
{{export -n _JAVA_OPTIONS}}.

This started happening a while ago in JDK6, AFAIK it isa JDK bug.

> Surefire steals focus on MacOS
> ------------------------------
>
>                 Key: HADOOP-10290
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10290
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>            Reporter: Laurent Goujon
>             Fix For: 3.0.0
>
>         Attachments: hadoop-10290.patch, hadoop-10290.patch
>
>
> When running tests on MacOS X, surefire plugin keeps stealing focus from 
> current application.
> This can be avoided by adding {noformat}-Djava.awt.headless=true{noformat} to 
> the surefire commandline



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to