You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Parag Mehta (JIRA)" <ji...@codehaus.org> on 2007/04/11 16:48:46 UTC

[jira] Commented: (MECLIPSE-253) eclipse:eclipse should use classpath variable JAVA_HOME or JDK_HOME when writing .classpath for tools.jar

    [ http://jira.codehaus.org/browse/MECLIPSE-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92561 ] 

Parag Mehta commented on MECLIPSE-253:
--------------------------------------

Correction, should be a 'var' instead of a 'lib'.

<classpathentry kind="var" path="JAVA_HOME/lib/tools.jar"/>

> eclipse:eclipse should use classpath variable JAVA_HOME or JDK_HOME when writing .classpath for tools.jar
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-253
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-253
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>         Environment: All.
>            Reporter: Parag Mehta
>
> Classpath generated by eclipse:eclipse contains absolute reference to the jdk being used
> <classpathentry kind="lib" path="C:/app/Java/jdk1.5.0_11/lib/tools.jar"/>
> This creates a classpath that is not portable amongst multiple machines/developers (who may have the jdk installed elsewhere).  Using variables like JAVA_HOME or JDK_HOME would yield a more portable result (like users are expected to define M2_REPO or the plugin can do so).
> <classpathentry kind="lib" path="JAVA_HOME/lib/tools.jar"/>
> Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira