Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse- JDK not found

I have downloaded JDK 7 and Eclipse Helios, but when I open Eclipse, I get the following 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:\eclipse\jre\javaw.exe javaw.exe in your current PATH

I have tried to put the exact path of JDK bin folder in eclipse.ini file but it didn't work

-vm
C:\Program Files\Java\jdk1.7.0_05\bin

Can somebody tell me what is the reason behind this issue and how can I solve it.

like image 437
Alfred James Avatar asked Jul 21 '12 07:07

Alfred James


Video Answer


1 Answers

When I had this problem, I solved the following way (I have Windows 7):

  1. Right click on the Eclipse icon in your desktop.
  2. Properties
  3. Target: C:\eclipse\eclipse.exe -vm C:\Java\jdk1.6.0_32\jre\bin\javaw.exe

    3a (if your jdk is installed in a path like "Program Files"): C:\eclipse\eclipse.exe -vm "C:\Java\jdk1.6.0_32\jre\bin\javaw.exe"

like image 92
Donato Szilagyi Avatar answered Oct 06 '22 01:10

Donato Szilagyi