You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Markus KARG (JIRA)" <ji...@codehaus.org> on 2011/12/27 15:31:02 UTC

[jira] (MECLIPSE-709) The message "Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program Files\Java\jre7" is invalid on Java 7

Markus KARG created MECLIPSE-709:
------------------------------------

             Summary: The message "Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program Files\Java\jre7" is invalid on Java 7
                 Key: MECLIPSE-709
                 URL: https://jira.codehaus.org/browse/MECLIPSE-709
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
    Affects Versions: 2.8
         Environment: Win 7, de_DE, Eclipse Indigo, JDK 1.7.0_02, Cp1252
            Reporter: Markus KARG
            Priority: Minor


When running mvn eclipse:eclipse after having installed JDK 1.7.0_02, the plugin complains about the following:

[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program Files\Java\jre7
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program Files\Java\jdk1.7.0_02\jre

In fact it is just normal that there is no jre/lib/rt.jar found in %ProgramFiles%\Java\jre7, due to Oracle's default directory layout in Java 7. That generation of JRE places rt.jar inside of %ProgramFiles%\Java\jre7\lib instead.

So the plugin should get changed to check for rt.jat inside of %JAVA_HOME%/lib instead of %JAVA_HOME%/jre/lib.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira