• 在运行Eclipse时明确指定要使用的Java VM


    创建桌面快捷方式

    Specifying the Java virtual machine
    Here is a typical Eclipse command line:

    eclipse -vm c:jdk6u22jreinjavaw

    Tip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.

    To create a Windows shortcut to an installed Eclipse:

    1.Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu.
    2.Select the shortcut and edit its Properties. In the Target: field append the command line arguments.
    Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)

    D:eclipseeclipse.exe -vm D:JRE6injavaw.exe

    D:eclipseeclipse.exe -vm "D:JRE 6injavaw.exe"

    注意:当javaw的路径包含空格时必须使用双引号包含起来。

    复制JRE安装文件到Eclipse根目录

    编辑eclipse.ini

     在-vmargs之前插入参数,如下:

     -vm
    D:JRE6injavaw.exe

    -vm
    D:JRE 6injavaw.exe

    注意:即使javaw的路径包含空格,也不要使用双引号。

     设置Path环境变量

    向Path环境变量追加内容(javaw的父级路径),如下:

    ;D:JRE6in

  • 相关阅读:
    团队博客——Sprint计划会议1
    团队博客第一次(团队成员及团队作业说明)
    第一次冲刺-团队开发(第一天)
    cnblog评价以及团队软件的部分改善
    Sprint计划会议1
    团队开发--手机小游戏 需求分析
    团队博客和成员
    第一次冲刺01
    第二次冲刺——第二次总结
    团队开发——Alpha版总结会议
  • 原文地址:https://www.cnblogs.com/rms365/p/10961447.html
Copyright © 2020-2023  润新知