如何在JDK中启动eclipse? [英] Howto start eclipse in JDK?

查看:128
本文介绍了如何在JDK中启动eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了一个Maven插件到eclipse第一次。现在有一个关于eclipse启动的消息,我应该在JDK中启动eclipse而不是jre来使Maven组件运行正常。在eclipse.ini中使用了一个-vm参数:

  -vm C:\Program Files(x86) \Java\ 

但重新启动后,消息仍然存在。



我尝试过:

  C:\Program Files(x86)\Java \bin 

还有:

  C:\程序文件(x86)\Java\bin\java.exe 

但没有改变。



如何在JDK中启动eclipse?



提前感谢

解决方案

如果您使用Windows,请右键单击eclipse快捷方式,然后在快捷方式中选择属性选项卡,您可以更改目标:框中的内容以指定jdk。我使用

 
C:\Program Files\eclipse-jee-galileo-sr1(3.5.1)\eclipse.exe -vmC:\Program Files\Java\jdk1.6.0_16\bin\javaw.exe-vmargs -Xmx1024m -XX:PermSize = 256M -XX:MaxPermSize = 512M -XX:+ UseConcMarkSweepGC - XX:+ CMSIncrementalMode

由于某些原因,当我尝试编辑eclipse.ini文件时,无法使用jdk。 / p>

I just installed a Maven plug-in into eclipse the first time. Now there is a message on eclipse startup, that i should start eclipse in JDK not jre to make Maven components run fine. There is a -vm argument which I used in the eclipse.ini:

-vm C:\Program Files (x86)\Java\

But the message is still there after restart.

I've tried the:

C:\Program Files (x86)\Java\bin

and also the:

C:\Program Files (x86)\Java\bin\java.exe

But nothing changed.

How do I start eclipse in JDK?

Thanks in advance.

解决方案

If you're using Windows, right click on your eclipse shortcut and select Properties, in the Shortcut tab you can change what's in the Target: box to specify the jdk. I use

"C:\Program Files\eclipse-jee-galileo-sr1 (3.5.1)\eclipse.exe" -vm "C:\Program Files\Java\jdk1.6.0_16\bin\javaw.exe" -vmargs -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode

For some reason I couldn't get it to use the jdk when I tried editing the eclipse.ini file.

这篇关于如何在JDK中启动eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆