[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Sharing .classpath file and creating classpath variables

Anthony Frasso wrote:
Hello, and thanks in advance for your help.

I'm using Eclipse version 3.1.2, and working in a small team on a project that uses JDK 1.4.2. This is not my primary JRE, so in my .classpath file, the following entry is created:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JDK 1.4.2 Update 5"/>

I know how to create a classpath variable, but I'm not quite sure how to create a variable to represent my JDK, so that we can share the .classpath file in the repository. Does anyone have any ideas on how to go about this?

In the Installed JREs section of your Preferences, each JRE/JDK is given a user-editable name. The way to handle different configurations on different developer machines is to agree on a name for the desired JRE(s) (just as with a classpath variable) and then have each developer define a JRE using that name. If you look carefully at the .classpath entry, you'll see that the JRE name is used as the last part of the path attribute.


Hope this helps,
	Eric