Eugene Kuleshov wrote:
BTW, it is a bad practice to use "..' reference from JRE, because
tools.jar is actually part of JDK, but JRE not necessarily mean that
you have JDK around. So, I' would suggest to set JAVA_HOME to the
proper JDK and use {$java.home}/lib/tools.jar path instead.
But I can't use {$java.home}/lib/tools.jar path as this is not my pom. I
believe there are others out there which use the .. syntax. I will raise
a question on maven user list about that.
Anyways, please consider to contribute to the project FAQ at
http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ
regards,
Eugene
Borut Bolčina wrote:
Now I see it! There is an entry:
java.home=C:\Program Files\Java\jre1.5.0_11
which is jre and therefore doesn't have tools.jar. How to convince
Eclipse to point to C:\Program Files\Java\jdk1.5.0_11?
But then...the
<systemPath>${java.home}/../lib/tools.jar</systemPath>
suggests that java.home in Eclipse should be
java.home=C:\Program Files\Java\jdk1.5.0_11\jre
to correctly locate tools.jar.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email