eclipse装上maven后老是报一个找不到jdk的错误
来源:互联网 发布:centos安装unzip 编辑:程序博客网 时间:2024/06/11 22:39
On 9/3/09 10:43 AM, Dan Grindstaff wrote:
Hello All, I have installed the maven plugin with eclipse and on startupit keeps complaining about runing in jre and not being able to fin jdk.I have modified my system and user environmental variables to includeJAVA_HOME pointing to the jdk, even added a variable to the projectJAVA_HOME pointing to the jdk but still maven complains. I cannot builda jar from the project. Any ideas are greatly appreciated. TIA.以上是一位前辈遇到的问题,正好我也遇到同样的问题,就把它摘录下来。解决方法是修改eclipse.ini 配置文件,把解决方案也原封不动的挪下来,以防忘记:Specifying the JVM
One of the most recommended options to use is to specify a specific JVM for Eclipse to run on. Doing this ensures that you are absolutely certain which JVM Eclipse will run in and insulates you from system changes that can alter the "default" JVM for your system. Many a user has been tripped up because they thought they knew what JVM would be used by default, but they thought wrong. eclipse.ini lets you be CERTAIN.
The following examples of
eclipse.ini
demonstrate correct usage of the -vm option.Note the format of the -vm option - it is important to be exact:
- The -vm option and its value (the path) must be on separate lines.
- The value must be the full absolute path to the Java executable, not just to the Java home directory.
- The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
Windows Example
-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m-vmC:/Java/JDK/1.5/bin/javaw.exe-vmargs-Xms40m-Xmx512mLinux Example
On a Linux system, the file looks quite similar:
-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m-vm/opt/sun-jdk-1.6.0.02/bin/java-vmargs-Xms40m-Xmx512m
- eclipse装上maven后老是报一个找不到jdk的错误
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK
- 关于eclipse添加maven后报缺少JDK的错误解决方法
- eclipse+maven+springmvc+tomcat 报找不到类的错误
- 1.Maven+SpringMVC+Eclipse软件安装配置,Maven报插件错误,Eclipse总是卡死的解决办法,导入一个maven工程后 一直显示importing maven project
- eclipse-maven更新代码后找不到类,报错
- 重装JDK后Eclipse启动错误,找不到JVM
- eclipse + maven 报运行环境是jre不是jdk的错误
- Eclipse用Maven打包后,JUnit老报ClassNotFound错误
- Maven+SpringMVC+Eclipse软件安装配置,Maven报插件异常,Eclipse总是卡死的解决方法,导入一个maven工程后 一直显示importing maven project
- 工程导入eclipse后,修改编译级别,仍然报一个奇怪的错误。
- 更换jdk后,eclipse项目报错的一般解决
- 在做Urlwrite+struts2.0的一个小示例的时候老是出现找不到action的情况404错误
- eclipse : Eclipse 在引入Maven工程后,找不到Maven Dependencies
- 调试信息:使用对话框弹出
- 日记
- 一些面试问答(更新中。。。。)
- 如何读取设备的PIN码
- 2010年05期《程序员》配套源码及相关链接
- eclipse装上maven后老是报一个找不到jdk的错误
- 5月刊推荐:怎样才是真正的架构师
- VMware:没有操作系统照样玩转云计算
- 电信网络使用路由实现了
- 五分钟讲清楚UML
- 云计算的全景路线图
- 多播委托
- zip版tomcat6找不到service.bat的解决方法
- VC++做日志流行方法