ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); ILaunchConfigurationType launchConfig = launchManager.getLaunchConfigurationType("org.eclipse.jdt.junit.launchconfig"); ILaunchConfigurationWorkingCopy workingCopy = launchConfig.newInstance(null, "name"); workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "javaprojectname"); workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "testclassname"); workingCopy.setAttribute("org.eclipse.jdt.junit.TEST_KIND", "org.eclipse.jdt.junit.loader.junit4"); ILaunchConfiguration config = workingCopy.doSave(); config.launch(ILaunchManager.RUN_MODE, null);