如何强制Eclipse使用Sun Java? [英] How can I force Eclipse to use Sun Java?
问题描述
我这样做是因为Eclipse Helios的运行速度很慢。不幸的是,它仍然很慢...你有什么想法如何强制它使用Sun Java?
我可以重新安装Eclipse,但是我已经安装了Android SDK,所以我必须再次安装。毕竟,我不认为这是解决问题的正确方法。我正在使用Ubuntu 10.10。
$ java -version
/ pre>
java版本1.6.0_22
Java(TM)SE运行时环境(build1.6.0_22-b04)
Java HotSpot(TM)64位服务器虚拟机(构建17.1-b03,混合模式)
我将不胜感激。
解决方案您可以使用
-vm
命令行参数来告诉Eclipse使用哪个虚拟机。
请参阅 Eclipse wiki例如用法
Before installing Eclipse, I had OpenJDK as the default JVM. Recently I changed it to Sun Java.
I did this because Eclipse Helios was running really slow. Unfortunately, it is still slow... Do you have any ideas how to force it to use Sun Java?
I could reinstall Eclipse, however I have already installed the Android SDK, so I would have to install that again. After all, I don't think that's the correct way of solving the problem. I'm using Ubuntu 10.10.
$ java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
I would be grateful for any help.
解决方案You can tell Eclipse which VM to use using
-vm
command line args.See Eclipse wiki for example usage
这篇关于如何强制Eclipse使用Sun Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!