Maven Integration for Eclipse JDK Warning on Windows
If you start eclipse (or springsource tool suite) and get the following popup:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8_OCgr7fTG2NMUXK2LcP3ma1WPkqsSoAGoLsi2ZDmxrt-4ZNCzaWEapaFUAsdNtVZ7_sZ9G3Vw-VLR5c2sU8bvy8lYZE3z8FjkIF-STVshBv_CFe9UN3ei6ka0l63_ZZMqwRlVLqePUQ/s400/maven-integration-warning.png)
you need to point eclipse to a JDK. You can't do this within the IDE itself so just close it. Then go to the directory where you have eclipse installed. Edit eclipse.ini in an editor that understands unix-style line endings (like notepad++ or wordpad). If you're running STS, the file will be called STS.ini instead of eclipse.ini.
Look for the -vmargs line and insert a new line BEFORE it that specifies the location to your JDK's javaw executable. Like so:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8_OCgr7fTG2NMUXK2LcP3ma1WPkqsSoAGoLsi2ZDmxrt-4ZNCzaWEapaFUAsdNtVZ7_sZ9G3Vw-VLR5c2sU8bvy8lYZE3z8FjkIF-STVshBv_CFe9UN3ei6ka0l63_ZZMqwRlVLqePUQ/s400/maven-integration-warning.png)
you need to point eclipse to a JDK. You can't do this within the IDE itself so just close it. Then go to the directory where you have eclipse installed. Edit eclipse.ini in an editor that understands unix-style line endings (like notepad++ or wordpad). If you're running STS, the file will be called STS.ini instead of eclipse.ini.
Look for the -vmargs line and insert a new line BEFORE it that specifies the location to your JDK's javaw executable. Like so:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEign8HzAPGNiutRN8DdovkYjeN7Jg6am9afyBd_QifcgA4bYGnzZdP9zexUwijB9tyZT-eYB4ztSZIJln4mhm1KwXj_OaYrq-QAMn3KYpsdQJZxQ9RYctaNNC-Qk8oksJfgDcvQaEEyM4g/s400/eclipse-ini-vm-config.png)
wow, thanks very much.
ReplyDeleteI was trying to put
-vm C:\...
all in the same line but it wasn´t working until I modified to
-vm
C:\...
Thanks very much!