Avoid main window for java processes