Eclipse Startup Problem

Asked

Viewed 2,156 times

0

I just downloaded Eclipse (because I will handle Android development), but when trying to open appears the message below.

JRE is installed on my machine as I can use Netbeans normally without problems.

Detail is that when you type "java -version" in cmd, it says that the "java" command does not exist.

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: D: Downloads eclipse-java-Kepler-SR2-Win32-x86_64 eclipse jre bin javaw.exe javaw.exe in your Current PATH

  • 3

    Have you tried adding the java path to the path?

  • Bacco, for this I need to change the environment variable "path", including the path of the JRE bin folder and include a JAVA_HOME variable with the path of the Java folder. That’s right?

  • bin folder of JDK, Everything else was right

  • 1

    I did, but now it presents this message: Failed to load the JNI Shared library "C: Program Files (x86) Java jdk1.7.0 bin.. jre bin client jvm.dll".

2 answers

3

According to that one OS response, you are not using compatible versions.

You need to have the set:

  • 64-bit OS (Operating System)
  • 64-bit Java
  • 64-bit Eclipse

Or:

  • 32-bit OS (Operating System)
  • 32-bit Java
  • 32-bit Eclipse

If this is not your problem, try adding to the file eclipse ini. the following (64 bit):

-vm C: path-to-64bit-java bin javaw.exe

Example: -vm C: Program Files Java jdk1.7.0 bin javaw.exe

Any questions ask in the comments, hope to have helped.

  • Deyel, I did it the way you asked, it didn’t work, I did it the other way (C: Program Files (x86) Java jdk1.7.0 jre bin client jvm.dll) but it didn’t work :(

  • I noticed one thing, as your Windows has Program Files (x86) means that it is 64 bit, but I see that your JDK is installed in the x86 folder which is 32 bit. I am wrong?

  • @user7618, you need to download the correct Java according to your operating system. After that, you will need to change its path in the PATH system variable. This answer is correct, just keep everything installed for the correct OS architecture.

0

I installed Java 11 and Eclipse and everything was working very well, but then I decided to download on Eclipse MarketPlace a dark theme to better visualize the code. However, the other day I started Eclipse and appeared this same error message.

I then went in control panel, advanced, "system environment variables" and includes in the item "path" the following path:

C:\Program Files\Java\jdk-11.0.1\bin\javaw.exe

I rebooted and managed to successfully open Eclipse.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.