Eclipse-JDK not found

I 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 tried putting the exact path in the JDK bin folder in the eclipse.ini file, but that did not work

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

Can someone tell me what is the cause of this problem and how can I solve it.

+7
source share
11 answers

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

  • Right-click the Eclipse desktop icon.
  • The properties
  • Target: C: \ eclipse \ eclipse.exe -vm C: \ Java \ jdk1.6.0_32 \ jre \ bin \ javaw.exe

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

+13
source

Set the environment variable Path .

 Path=C:\Program Files\Java\jdk1.7.0_05\bin 
+3
source

In your eclipse.ini file, you need to specify the path to the Jave executable, and not just the bin directory, as described in the Eclipse wiki . For example, for example:

 -vm C:\Program Files\Java\jdk1.7.0_05\bin\javaw.exe 
+3
source

Perhaps this is because you did not load Oracle ... I had the same problem.

0
source

I think eclipse needs to read the Java file, but it does not know where it is. I usually set the PATH variable when installing the Java SDK. I think you need to do this, as it complains about โ€œyour current PATHโ€.

Oracle will tell you how to do this:

http://docs.oracle.com/javase/tutorial/essential/environment/paths.html

0
source

Windows 7

On the desktop, right-click the Computer icon. Select "Properties" in the context menu. Click on the link "Advanced system settings." Select environment variables. In the System Variables section, find the PATH environment variable and select it. Click "Edit." If the PATH environment variable does not exist, click Create. In the "Edit System Variable" window (or "New System Variable"), specify the value of the PATH environment variable. Click OK. Close all other windows by clicking OK.

C: \ Program Files \ Java

0
source

Today I faced the same problem after installing eclipse on a new PC with the updated 64-bit JRE (on Windows 7 x64). Adaptation of the PATH variable, as suggested, led to the JNI file not detecting an error.

The problem was that I used a 32-bit eclipse with 64-bit Java runtime. The other computer has an old 32-bit JRE installed, so a 32-bit eclipse worked. After removing the 32-bit JRE, eclipse stopped working with the same error as above.

What I learned from this:

  • Although java is cross-platform, the difference between 32 and 64-bit versions still exists
  • Java JRE and eclipse version must match (32 or 64 bit) for proper operation
  • Therefore, it may be necessary to install both 32 and 64 bit JREs, depending on the software used.
  • When upgrading Java, you must always upgrade both versions of the JRE
  • Adding the JRE folder to PATH is not required; this does not fix the problem.
0
source

Yes, even I ran into the same problem and figured out a solution. First check if Java Jdk is installed. If yes, continue .... Then go to C: \ then Program Files and find java and there you will find the Jdk file to open it, then copy the bin file and go to your adt-bundle-windows-x86_64 and put bin file in Eclipse. Hope this works for you and happy development;)

0
source

Because Eclipse and JDK "installation time" is very short. I think a clean solution will save you time.

 1/ The first, JDK and Eclipse should be the same "bit" (Eclipse 32 bit go with JDK 32bit, and 64 bit so on). I think nowaday computers with large memory and modern 64 bit OS should choose the 64 bit pair. 2/ Remove all JDK version in your PC, check if its done by: Open CMD, type "java" and enter, if there is no application run, you done. 3/ Install JDK (assume JDK 8 64 bit) 4/ Download the rights version of Eclipse (zip)(assumse you download 64 bit version) 5/ Just extract eclipse and run it. 

Eclipse is simply portable software that is packaged in a zip code, do not waste time fixing a wrong installation. I hope for this help.

0
source

The E-Riz comment worked for me, I just had to make sure that I put the command at the beginning of the ini file.

Inside the eclipse directory you will have eclipse.ini, at the very top of the ini file that passed through the directory path

 -vm C:\.....\Java\jdk1.7.0_05\bin\javaw.exe 
-one
source

You do not need to edit any path. Here is what you do.

  • Open the Eclipse folder
  • Search for "javaw" in the search.
  • Copy "javaw" and paste it into the folder.
  • Open Eclipse.
  • Enjoy it!

I donโ€™t know why you guys keep talking about the path. This has nothing to do with it. The dialog said that he was only looking for this folder for the javaw program.

-3
source

All Articles