void () { try { new JavaParameters().toCommandLine(); fail("'JDK missing' expected"); } catch (CantRunException e) { assertEquals(ExecutionBundle.message("run.configuration.error.no.jdk.specified"), e.getMessage()); } }