public static IJavaProject createProject(String projectName) throws CoreException {
  IClasspathEntry[] classpath=new IClasspathEntry[]{JavaCore.newSourceEntry(Path.fromOSString("/" + projectName + "/"+ SOURCE_FOLDER)),JavaCore.newContainerEntry(Path.fromOSString("org.eclipse.jdt.launching.JRE_CONTAINER"))};
  return ProjectTestUtil.createProject(projectName,classpath);
}

public static IJavaProject createProject ( String projectName ) throws CoreException { IClasspathEntry [ ] classpath = new IClasspathEntry [ ] { JavaCore . newSourceEntry ( Path . fromOSString ( "/" + projectName + "/" + SOURCE_FOLDER ) ) , JavaCore . newContainerEntry ( Path . fromOSString ( "org.eclipse.jdt.launching.JRE_CONTAINER" ) ) } ; return ProjectTestUtil . createProject ( projectName , classpath ) ; }
creates a java project with the given name and a " src " folder and the default jre library on its classpath .
