| | |
| | | import org.opends.quicksetup.util.Utils; |
| | | |
| | | import java.io.PrintStream; |
| | | import java.io.ByteArrayOutputStream; |
| | | import java.io.File; |
| | | import java.util.logging.Level; |
| | | import java.util.logging.Logger; |
| | |
| | | * problems with the display environment. |
| | | */ |
| | | PrintStream printStream = System.err; |
| | | System.setErr(new EmptyPrintStream()); |
| | | System.setErr(Utils.getEmptyPrintStream()); |
| | | t.start(); |
| | | try |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * This class is used to avoid displaying the error message related to display |
| | | * problems that we might have when trying to display the SplashWindow. |
| | | * |
| | | */ |
| | | private class EmptyPrintStream extends PrintStream { |
| | | /** |
| | | * Default constructor. |
| | | * |
| | | */ |
| | | public EmptyPrintStream() |
| | | { |
| | | super(new ByteArrayOutputStream(), true); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public void println(String msg) |
| | | { |
| | | } |
| | | } |
| | | |
| | | } |