Bug 29003 Preferences 'Output Folder Name' needs to allow '/' in the path [build path]
In the window/preferences/Java/New Project panel, when 'Folders' radio button is set, the 'output folder name' cannot be set to something like 'WEB- INF/classes'. The error message "'/' is an invalid character" appears. However, when setting the output path on the project (project/properties), 'WEB- INF/classes' is allowed, as the '/' is valid. Please change the window/preferences to allow a '/' in output folder name, so this value can be set by default.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/NewJavaProjectPreferencePage.java
res.add(JavaCore.newLibraryEntry(path, attachPath, attachRoot, isExported));
						break;
					case IClasspathEntry.CPE_VARIABLE:
						res.add(JavaCore.newVariableEntry(path, attachPath, attachRoot, isExported));
						break;
					case IClasspathEntry.CPE_PROJECT:
						res.add(JavaCore.newProjectEntry(path, isExported));
						break;
					case IClasspathEntry.CPE_CONTAINER:
						res.add(JavaCore.newContainerEntry(path, isExported));
						break;
				}								
			} catch (NumberFormatException e) {
				String message= JavaUIMessages.getString("NewJavaProjectPreferencePage.error.decode"); 
				JavaPlugin.log(new Status(Status.ERROR, JavaUI.ID_PLUGIN, Status.ERROR, message, e));
			} catch (NoSuchElementException e) {
				String message= JavaUIMessages.getString("NewJavaProjectPreferencePage.error.decode"); 
				JavaPlugin.log(new Status(Status.ERROR, JavaUI.ID_PLUGIN, Status.ERROR, message, e));
			}
		}
		return (IClasspathEntry[]) res.toArray(new IClasspathEntry[res.size()]);	
	}
	
	
	public static String encodeJRELibrary(String desc, IClasspathEntry[] cpentries) {
		StringBuffer buf= new StringBuffer();
		for (int i= 0; i < cpentries.length; i++) {
			IClasspathEntry entry= cpentries[i];
			buf.append(URLEncoder.encode(desc));
			buf.append(' ');