Eclipse配置Maven的问题解决办法--Please make sure the -vm option in eclipse.ini
来源:互联网 发布:23端口是什么 编辑:程序博客网 时间:2024/06/05 11:34
参考eclipse官方:http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/running_eclipse.htm
在eclipse中安装了m2eclipse(maven插件)
在安装后,出现下列警告:
The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using jars from the JDK.
Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs.
解决:
(1)设置系统安装的JDK目录set your JDK as a default Java environment in eclipse (default installed JRE)
Open eclipse. Click on ‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’.
If you can’t find any JDK on the list -> click ‘Add’ -> ‘Standard VM’ -> set all paths and click ‘Finish’.
After that – check this JDK on the list of installed JREs and click ‘OK’.
(2)增加JDK路径到eclipse.ini文件中add path to your SDK in eclipse.ini
open ‘eclipse.ini’ and add there: -vm path_to_javaw_on_your_machine,so in my example it will be (jdk1.6.0_17 on Windows):-vm
D://Java/jdk1.6.0_13/jre/bin/javaw
不能有空格,否则要用~1代替,如: ‘Program Files’ is ‘Progra~1′. Notice 1: Do not use paths with spaces! Replace all dir names with spaces to their shortcuts. For example: ‘Program Files’ is ‘Progra~1′.
要分为2行写。Notice 2: ‘-vm’ is in the first line, path is in the second line
your ‘eclipse.ini’ looks like this:
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
D:\ProgramFiles\Java\jre6\bin\javaw
-vmargs
-Xms40m
-Xmx256m
-vm要在-vmargs前面。Notice : ‘-vm’ must be "-vmargs" above
重启eclipse。Restart eclipse and everything should be fine.
=====================================
测试结果 ‘Program Files’ is ‘Progra~1′ 不好用。
最终选用办法:
-vm
D:\tool\jdk1.6.0_43\jre\bin\javaw
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms100m
-Xmx512m
-Dfile.encoding=UTF-8
=====================================
转自:http://tianya23.blog.51cto.com/1081650/691572
技术改变生活商业成就梦想
参考:http://www.cnblogs.com/skyme/archive/2011/08/18/2145125.html
- Eclipse配置Maven的问题解决办法--Please make sure the -vm option in eclipse.ini
- Eclipse和Maven的结合使用--Please make sure the -vm option in eclipse.ini
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs
- eclipse安装maven插件后: -vm option in eclipse.ini
- eclipse 配置Maven问题解决办法
- 在eclipse的启动配置文件eclipse.ini中配置-vm option
- maven工程项目导入eclipse相关问题解决办法
- Eclipse遇到的问题解决办法
- [问题解决] eclipse.ini文件配置启动JDK
- 安装eclipse时jdk、ADT、sdk的配置问题解决办法
- Please make sure you have the correct access rights
- Please make sure you have the correct access rights
- Eclipse配置eclipse.ini
- [Java][]Maven]mvn eclipse:eclipse导入jar失败、直接导入工程的问题解决办法
- [Java][]Maven]mvn eclipse:eclipse导入jar失败、直接导入工程的问题解决办法
- JAVA为什么内部类在引用形参的时间要用Final
- 解决WebService 测试窗体只能用于来自本地计算机的请求
- 使用C++.NET调用webservice实战
- 有限状态机(FSM)的设计与实现(1)
- 查看NGINX,APACHE,MYSQL,PHP的编译参数
- Eclipse配置Maven的问题解决办法--Please make sure the -vm option in eclipse.ini
- python手记(8)
- 原地旋转字符串
- 有限状态机(FSM)的设计与实现(二)
- java最新最全面试题
- 求一个矩阵中最大的二维矩阵(元素和最大)
- I2C软件编程中注意事项
- [Leetcode]Convert Sorted Array to Binary Search Tree
- linux shell 中"2>&1"含义