Bug 17149 Libraries-Path in Java Build Path gets broken
eclipse-version: F1, linux-gtk bug: "Libraries-Path" of external JARs in "Java Build Path" gets broken I observed the following bug: 1) Call the "Java Build Path"-Dialog via selecting a project, "Properties" via right mouse button and then "Java Build Path". 2) Enter a library path via "Add External JARs..." and press "OK" Everything is ok so far. 3) Call the "Java Build Path"-Dialog again: The path to the library I entered before is broken and eclipse does not find the library any more. The path in the project's .classpath-file is ok. example: I created the project "dummy". Tried to add the external JAR "jdom.jar" to the Library-Path. jdom.jar resides in the directory "/home/mike/java/workspace/jdom/build". I selected the path as an "external JAR" . The path is shown correctly in the libraries-list. When I called the "Java Build Path"-Dialog again the path listed in the "Java Build Path"-Dialog / "Libraries" is changed to "home/mike/java/workspace/jdom/build/jdom.jar" (without the first slash). When selecting this entry and clicking on "Edit" the path shown in the "Edit Class Folder"-dialog is "mike/java/workspace/jdom/build/jdom.jar" (without "/home/"). After trying to correct the path manually in the "Edit Class Folder"-dialog the path shown in "Java Build Path"-Dialog / "Libraries" is "dummy/home/mike/java/workspace/jdom/build/jdom.jar". My workaround so far is to create variables for each library and to enter the library paths as variables.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
* Initializes the classpath for the given project. Multiple calls to init are allowed,
	 * but all existing settings will be cleared and replace by the given or default paths.
	 * @param project The java project to configure. Does not have to exist.
	 * @param outputLocation The output location to be set in the page. If <code>null</code>
	 * is passed, jdt default settings are used, or - if the project is an existing Java project- the
	 * output location of the existing project 
	 * @param classpathEntries The classpath entries to be set in the page. If <code>null</code>
	 * is passed, jdt default settings are used, or - if the project is an existing Java project - the
	 * classpath entries of the existing project
	 */	
	public void init(IJavaProject jproject, IPath outputLocation, IClasspathEntry[] classpathEntries) {
		fCurrJProject= jproject;
		boolean projectExists= false;
		List newClassPath= null;
		try {
			IProject project= fCurrJProject.getProject();
			projectExists= (project.exists() && project.getFile(".classpath").exists()); 
			if  (projectExists) {
				if (outputLocation == null) {
					outputLocation=  fCurrJProject.getOutputLocation();
				}
				if (classpathEntries == null) {
					classpathEntries=  fCurrJProject.getRawClasspath();
				}
			}
			if (outputLocation == null) {
				outputLocation= getDefaultBuildPath(jproject);
			}			
			if (classpathEntries != null) {
				newClassPath= getExistingEntries(classpathEntries);