无效方法:

//System.exit(Application.EXIT_RELAUNCH);

//System.exit(Application.EXIT_RELAUNCH);   

 可以正常重启应用程序的方法:

Application.EXIT_RELAUNCH为24

System.setProperty(PROP_EXIT_CODE, Integer.toString(24));
 PlatformUI.getWorkbench().restart();

相关文章: