Eclipse JRE or JDK missing

前端 未结 6 1152
生来不讨喜
生来不讨喜 2020-12-19 07:56

I am trying to use Eclipse on a friends computer but we keep getting this when we run Eclipse

\"enter

6条回答
  •  醉话见心
    2020-12-19 08:35

    I had a similar problem, since our Java and JDK is consistently updated by our service desk, including uninstalling old JDKs. They take care of the PATH for us, but then the JRE that Eclipse was used to "seeing" was gone. So, the thing that has worked best for me is to modify the shortcut's "target" from:

    "C:\Program Files\Eclipse\Eclipse IDE for Java EE Developers\eclipse.exe"
    

    to

    "C:\Program Files\Eclipse\Eclipse IDE for Java EE Developers\eclipse.exe" -vm "C:\Program Files\Java\\jre\bin\javaw.exe"
    

    That will point Eclipse toward to the JRE in the JDK you want it to use, and then you can update that shortcut when your JDK updates.

    This is on Windows 64bit, obviously.

提交回复
热议问题