Eclipse - no Java (JRE) / (JDK) … no virtual machine

前端 未结 30 2167
青春惊慌失措
青春惊慌失措 2020-11-22 05:58

I am trying to get Eclipse v3.5 (Galileo) to re-run on my computer - I have run it before with no problems, but now I keep getting this error:

30条回答
  •  隐瞒了意图╮
    2020-11-22 06:22

    Well this answer is to those who tried all of them others an still no luck, May this be Android studio or Eclipse i usually do this when everything else fails.

    1. Find your Android sdk folder and open the android.bat file with a text editor
    2. you will find some commands like these in the start of the file,

    set java_exe=

    call lib\find_java.bat

    if not defined java_exe goto :EOF

    1. Change them to

      set java_exe= <the path to your java.exe file(can be found inside your jdk folder/bin directory)>

    2. find the lines

    rem Set SWT.Jar path based on current architecture (x86 or x86_64) for /f "delims=" %%a in ('"%java_exe%" -jar lib\archquery.jar') do set swt_path=lib\%%a

    1. Replace it with set swt_path=<the path to your respective swt.jar file, for x86 it is at sdk\tools\lib\x86 and for x64 at sdk\tools\lib\x86_64>
    2. Save and close the file and now you are good to go..

提交回复
热议问题