Bug 279587

Summary: Inconsistent information on classpath
Product: [Eclipse Project] JDT Reporter: Tomasz Bartczak <kretes>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
screenshot of two inconsistent screens none

Description Tomasz Bartczak CLA 2009-06-09 05:42:25 EDT
Created attachment 138657 [details]
screenshot of two inconsistent screens

Build ID: M20090211-1700

Steps To Reproduce:
I have a duplicate JRE in classpath, and what happens is that it is shown in the project properties | build path, but not shown in project explorer.
Comment 1 Dani Megert CLA 2009-06-09 05:55:35 EDT
This works fine for me on a Java project. What kind of project is this?
Comment 2 Tomasz Bartczak CLA 2009-06-09 06:04:40 EDT
well a 'composite' one.

	<natures>
		<nature>org.springframework.ide.eclipse.core.springnature</nature>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.maven.ide.eclipse.maven2Nature</nature>
		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
	</natures>

I think the problem is in the structure of my .classpath:

<classpath>
	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/config/WEB-INF"/>
	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
		<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>	</classpathentry>
	<classpathentry kind="output" path="target/classes"/>
</classpath>


look at the JRE_CONTAINER is inside MAVEN2_CLASSPATH_CONTAINER

I don't know if it's an eclipse problem that allowed adding nested JRE or m2eclipse?
Comment 3 Dani Megert CLA 2009-06-09 06:07:00 EDT
Looks like m2eclipse. The Package Explorer and the Project Explorer work as expected for Java projects.