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:
set JAVA_HOME variable and ad JAVA_HOME/bin to evnrionment path variable.
Eclipse will by default try to launch with the default "java.exe
" (the first one referenced by your PATH
)
Three things to remember:
PATH
to update.June 2012, jmbertucci comments:
I'm running Windows 7 64-bit and I had the 32-bit JRE installed. I downloaded Eclipse 64-bit which looks for a 64-bit JRE. Because I didn't have the 64-bit JRE it threw the error, which makes sense.
I went to the Java manual install page (which was not as directly accessible as you'd like) and installed the 64-bit version. See "Java Downloads for All Operating Systems". That was all I needed.
April 2016: Steve Mayne adds in the comments:
I had to edit the
eclipse.ini
file to reference the correct Java path - Eclipse doesn't use the environmentPATH
at all when there is a value ineclipse.ini
.
Edited my eclipse.ini file to update the newly updated JDK. Previously I had jdk1.7.0_09 and updated now to jdk1.7.0_80 and eclipse threw this error.
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:/Program Files/Java/jdk1.7.0_09/bin/javaw
After updating eclipse.ini from,
-vm
C:/Program Files/Java/jdk1.7.0_09/bin/javaw
to
-vm
C:/Program Files/Java/jdk1.7.0_80/bin/javaw
Eclipse works fine.
Try setting your JAVA_HOME to the correct folder. Google for setting environment variables in Windows.
Don't worry i was also ruined by this error and fatal and when i got it i was so frustrate even i was giving to leave an android programming, but i got it, Simply first of all copy this code and paste in your system variable Under path ...
C:\Program Files;C:\Winnt;C:\Winnt\System32;C:\Program Files\Java\jre6\bin\javaw.exe
Now copy the "jre" folder from your path like i have have "jre" under this path
C:\Program Files\Java
and paste it in your eclipse folder means where your eclipse.exe file is placed. like i have my eclipse set up in this location
F:\Softwares\LANGUAGES SOFTEARE\Android Setup\eclipse
So inside the eclipse Folder paste the "jre" FOLDER . If you have "jre6" then rename it as "jre"....and run your eclipse you will got the solution...
//<<<<<<<<<<<<<<----------------------------->>>>>>>>>>>>>>>>>>>
OTHER SOLUTION: 2
If the problem could't solve with the above steps, then follow these steps
-vmF:\Softwares\LANGUAGES SOFTEARE\Android Setup\eclipse Indigo version 32 Bit\jre\bin/javaw.exe
Now this time when you will start eclipse it will search for javaw.exe, so it will search the path in the eclipse.ini, as it is now in the same folder so, it will start the javaw.exe and it will start working.
If You still have any query you can ask it again, just go on my profile and find out my email id. because i love stack overflow forum, and it made me a programmer.*
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.
set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF
Change them to
set java_exe=
<the path to your java.exe file(can be found inside your jdk folder/bin directory)>
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
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>