Eclipse安装Maven插件后,Eclipse启动问题:Maven Integration for Eclipse JDK Warning。
1. 设置Eclipse使用的JRE为本机安装的JDK目录:??? 1.1 在eclipse.ini中添加两行
??? -vm
??? C:Program FilesJavajdk1.6.0_10injavaw.exe
??? 注意: 要写在两行,写在一行不能生效;
??????????? 这两行要定在-vmargs之前,不然也不能生效。
?? 1.2? 或设置Eclipse--Windows--Preferences--Java--Installed JREs将JRE home改成jdk目录。
?? 经试验发现第1.2步可以不做,但建议配置开发环境是配置着一步,而且第一步的两行也可以写成
??? ?-vm
??? C:Program FilesJavajdk1.6.0_10in
?
?
Search for a line that starts with "-vm". The line following it shows which Java binary is used. Depending on the name and location of the used Java binary one can figure out if a JRE or a JDK is used:
If the path contains "jre" (e.g. as inC:\Program Files\Java\jre6\bin\client\jvm.dll) it is a JRE If the path contains "jdk" (e.g. as in C:\Program Files\Java\jdk1.6.0_17\bin\javaw.exe) it is a JDK. ????? If no JDK is used for eclipse, change it:
Quit Eclipse if it is running Go to the eclipse installation directory and open the fileeclipse.ini in a text editor. Search for the line "-vmargs" Before?the line "-vmargs", add two lines:-vm".C:\Program Files\Java\jdk1.6.0_17\bin\javaw.exe" on Windows) ?
?
2. 配置eclipse.ini文件:??? 先解释该文件-vmargs下常见参数的意思: