Bug 279587 - Inconsistent information on classpath
Summary: Inconsistent information on classpath
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 05:42 EDT by Tomasz Bartczak CLA
Modified: 2009-06-09 06:07 EDT (History)
1 user (show)

See Also:


Attachments
screenshot of two inconsistent screens (97.73 KB, image/jpeg)
2009-06-09 05:42 EDT, Tomasz Bartczak CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.