如何运行eclipse与不同的java版本? [英] How to run eclipse with different java version?

查看:103
本文介绍了如何运行eclipse与不同的java版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用eclipse来开发BlackBerry应用程序。我目前在我的电脑上有JDK / JRE 7,但这使BlackBerry插件崩溃。实际上是一个已知的问题,唯一需要做的就是运行eclipse与JDK / JRE 6而不是7。



我下载并安装了版本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屋!

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