如何运行eclipse与不同的java版本? [英] How to run eclipse with different java version?
问题描述
我下载并安装了版本6.但是我相当肯定的eclipse仍然使用7.我一年前有同样的问题,我记得我不得不配置一些系统变量,它的工作,但我现在找不到解决方案。
任何想法在这一个?重要!我不想在版本6中编译,这意味着我只需要通过 eclipse选择java版本。我需要的是eclipse到开始
与版本6。
- 在Eclipse文件夹中打开eclipse配置文件
eclipse.ini
-
添加
-vm yourPath\Java\jre6\bin\javaw.exe
like:-startup
plugins / org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins / org.eclipse.equinox.launcher.win32。 win32.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
- launcher.XXMaxPermSize
256M
-vm
C:\Java\jre6\bin\javaw.exe
...
如果路径包含空格,则不需要转义它们,请参阅 Eclipse Wiki 了解更多规格。
I am using eclipse for developing BlackBerry Applications. I have JDK/JRE 7 currently on my computer , but that makes the BlackBerry plugins crash. Actually is a known issue and the only thing need to be done is run eclipse with JDK/JRE 6 instead of 7.
I downloaded and installed version 6. However I am pretty sure eclipse still uses 7. I had the same problem a year ago and I remembered I had to configure some System Variables and it worked , but I can't really find the solution now.
Any idea on this one? Important! I don't want to compile in version 6 , which means I just have to choose the java version through eclipse. What I need is eclipse to start
with version 6.
- Open eclipse config file
eclipse.ini
in your Eclipse folder. Add
-vm yourPath\Java\jre6\bin\javaw.exe
like:-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813 -product org.eclipse.epp.package.java.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -vm C:\Java\jre6\bin\javaw.exe ...
If the path contains spaces there is no need to escape them, see the Eclipse Wiki for more specs.
这篇关于如何运行eclipse与不同的java版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!