zoukankan      html  css  js  c++  java
  • 在运行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

  • 相关阅读:
    等价类测试实践
    软件测试
    软件测试第八周——业内人员的感触与建议
    软件测试第七周——互联网测试
    软件测试第六周——白盒测试
    Hessian matrix
    软件测试第5周——VisualStudio 2013 编码的UI测试
    软件测试第四周——String 转 int
    软件测试第三周——测试框架
    软件测试第二周学习
  • 原文地址:https://www.cnblogs.com/rms365/p/10961447.html
Copyright © 2011-2022 走看看