eclipse装上maven后找不到jdk
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了eclipse装上maven后找不到jdk,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1918字,纯文字阅读大概需要3分钟。
内容图文
On 9/3/09 10:43 AM, Dan Grindstaff wrote:
Hello All, I have installed the maven plugin with eclipse and on startup it keeps complaining about runing in jre and not being able to fin jdk. I have modified my system and user environmental variables to include JAVA_HOME pointing to the jdk, even added a variable to the project JAVA_HOME pointing to the jdk but still maven complains. I cannot build a 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 ofeclipse.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
-showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vm C:/Java/JDK/1.5/bin/javaw.exe -vmargs -Xms40m -Xmx512mLinux Example
On a Linux system, the file looks quite similar:-showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vm /opt/sun-jdk-1.6.0.02/bin/java -vmargs -Xms40m -Xmx512m
- 然后找到myeclipse的快捷方式,打开属性,找到目标栏,修改其中-vm参数指定的javaw路径为有效路径即可。或者不要用myeclips提供的快捷方式打开,直接使用eclipse启动程序也可以直接启动myeclipse
原文:http://www.cnblogs.com/wuyuxiang/p/5166603.html
内容总结
以上是互联网集市为您收集整理的eclipse装上maven后找不到jdk全部内容,希望文章能够帮你解决eclipse装上maven后找不到jdk所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。