How do I set the default Java installation/runtime (Windows)?

前端 未结 9 1387
迷失自我
迷失自我 2020-12-08 00:19

I\'m in the situation where I\'ve installed the JDK, but I can\'t run applets in browsers (I may not have installed the JRE).

However, when I install the JRE, it clo

9条回答
  •  难免孤独
    2020-12-08 01:02

    I have patched the behaviour of my eclipse startup shortcut in the properties dialogue

    from

    "E:\Program Files\eclipse\eclipse.exe"
    

    to

    "E:\Program Files\eclipse\eclipse.exe" -vm "E:\Program Files\Java\jdk1.6.0_30\bin"
    

    as described in the Eclipse documentation

    It is a patch only, as it depends on the shortcut to fix things...

    The alternative is to set the parameter permanently in the eclipse initialisation file.

提交回复
热议问题