Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Facet uses JRE name. The JRE name may not be available on others computers.
Facet uses JRE name. The JRE name may not be available on others computers. [message #227321] Tue, 27 January 2009 12:50 Go to next message
Eclipse UserFriend
MYPROJECTROOT/.settings/org.eclipse.jst.common.project.facet .core.prefs
contains:

#Mon Jan 26 17:05:44 CET 2009
classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\: org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\ :java-6-sun-1.6.0.07/owners=jst.java\:6.0
eclipse.preferences.version=1


In "Window / Preferences / Java / Installed JREs" I have the JRE Name
"java-6-sun-1.6.0.07" as seen in the above file. But it's not likely that
every other developers JRE will be named the same.

What is the best thing I can do before I check in my project (including
classpath , .project and .settings/* ) to make it as easy as possible for
someone else to check out and run it? What happens if someone checks it
out but the named JRE does not exist? (i.e. how much will Eclipse help
out?)

Should I write some instructions that the developer should rename or
duplicate their JRE for Java 6 from Sun. And give them a name to use. So
that they can do it before checking out the project.

Some advice would be much appreciated!

Best regards, Kent
Re: Facet uses JRE name. The JRE name may not be available on others computers. [message #227329 is a reply to message #227321] Tue, 27 January 2009 14:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 1/27/2009 7:50 AM, Kent Larsson wrote:
>
> MYPROJECTROOT/.settings/org.eclipse.jst.common.project.facet .core.prefs
> contains:
>
> #Mon Jan 26 17:05:44 CET 2009
> classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\: org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\ :java-6-sun-1.6.0.07/owners=jst.java\:6.0
>
> eclipse.preferences.version=1
>
>
> In "Window / Preferences / Java / Installed JREs" I have the JRE Name
> "java-6-sun-1.6.0.07" as seen in the above file. But it's not likely
> that every other developers JRE will be named the same.
>
> What is the best thing I can do before I check in my project (including
> classpath , .project and .settings/* ) to make it as easy as possible
> for someone else to check out and run it? What happens if someone checks
> it out but the named JRE does not exist? (i.e. how much will Eclipse
> help out?)
>
> Should I write some instructions that the developer should rename or
> duplicate their JRE for Java 6 from Sun. And give them a name to use. So
> that they can do it before checking out the project.

Can't you just select an Execution Environment instead of a particular
JRE? I don't know what WTP does with it, but that is how I always
configure "plain old" Java projects to avoid this problem.

Hope this helps,
Eric
Re: Facet uses JRE name. The JRE name may not be available on others computers. [message #227358 is a reply to message #227321] Tue, 27 January 2009 16:50 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
I would recommend coming to an agreement within your team on what to call
external resources that are referenced in your project metadata. The name
of the JRE runtime is one such resource, but you also have the app server
runtime name, and maybe even some path variables for locating external
jars.

Hope this helps,

- Konstantin
Previous Topic:Apache Ant build.xml has no DTD or XML Schema,but I want to validate other files
Next Topic:axis2 automatically redeploy?
Goto Forum:
  


Current Time: Tue Mar 19 06:05:40 GMT 2024

Powered by FUDForum. Page generated in 0.04147 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top