IJavaProject javaProject = JavaCore.create(project);
IClasspathEntry[] oldClasspath = javaProject.getRawClasspath();
IClasspathEntry[] newClasspath = new IClasspathEntry[oldClasspath.length + 1];
System.arraycopy(oldClasspath, 0, newClasspath, 0, oldClasspath.length);
IClasspathEntry gwtServletJarEntry = JavaCore.newVariableEntry(Util.getGwtServletLibPath(), null, null);
IClasspathAttribute attr = JavaCore.newClasspathAttribute("org.eclipse.jst.component.dependency", "/WEB-INF/lib");
gwtServletJarEntry = JavaCore.newVariableEntry(gwtServletJarEntry.getPath(), null, null, new IAccessRule[0], new IClasspathAttribute[] { attr }, false);
newClasspath[oldClasspath.length] = gwtServletJarEntry;
javaProject.setRawClasspath(newClasspath, monitor);
} catch (JavaModelException e) {