Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse IDE for Java Developers doesn't start-up. Exit code 2
Eclipse IDE for Java Developers doesn't start-up. Exit code 2 [message #1797178] Sat, 27 October 2018 01:49 Go to next message
Rafael Rodriguez is currently offline Rafael RodriguezFriend
Messages: 2
Registered: October 2018
Junior Member
I have been using 'Eclipse IDE for Java Developers' for several months and suddenly Eclipse is not able to open anymore.

When I try to open it I got these error messages in sequence:
1. Error opening registry key 'Software\JavaSoft\Java Runtime Environment'
2. Error: could not find java.dll
3. Error: could not find Java SE Runtime Environment
4. <very long text shown in the picture attached>

I have searched on the internet a solution for this problems and I have done so far but the problem persists:

a. Reinstall Java (jdk-11.0.1_windows-x64_bin.exe)

b. check windows registry and I noticed such 'Software\JavaSoft\Java Runtime Environment' doesn't exist. I found these
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\11.0.1
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\11.0.1\MSI

c. on CMD I got this
C:\>java -version
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

I appreciate any help to solve this issue.

Thank you
Re: Eclipse IDE for Java Developers doesn't start-up. Exit code 2 [message #1797195 is a reply to message #1797178] Sat, 27 October 2018 15:38 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1415
Registered: July 2009
Senior Member
You appear to have a corrupted version of java installed. I can't be sure of the exact issue, but I would suspect a failed uninstall of an older version or some conflict when installing a new version. From the log file you posted, the java executable being run is C:\ProgramData\Oracle\Java\javapath\java.exe. This is giving the first three error messages that you list. Searching the internet for this path name seems to indicate that Oracle started using this location with Java 8. It seems its purpose is to use the registry to locate the actual VM to run. Eclipse runs in the java VM, so it won't be able to run until java can be started cleanly. I would focus on getting the java -version command to run successfully. After that, you can move on to getting Eclipse running again.

I'm not sure what you need to do to fix the problem. Perhaps you can check installed software to see if there are old Java versions listed. Maybe an uninstall of any java versions (both jdk and jre) followed by a reinstall of the one you want to use will help.

Sorry I couldn't be more helpful, but I'm not very familiar with Java installation issues.
Re: Eclipse IDE for Java Developers doesn't start-up. Exit code 2 [message #1797202 is a reply to message #1797195] Sat, 27 October 2018 22:42 Go to previous message
Rafael Rodriguez is currently offline Rafael RodriguezFriend
Messages: 2
Registered: October 2018
Junior Member
Hi all.

Just in case somebody faces the same problem, I managed to solve it.

1) Somehow, Java Runtime Environment got uninstalled from my PC. I installed it BUT I still faced a lot of problems because of the JRE installation file I got by default was for Win 32b (it could be installed without problems) but that generated a mismatch between JavaRE and Eclipse and JDK. So please be sure you installed all of the same time (32b or 64b)

Lack of Java Runtime Environment gives this on CMD
C:\>java -version
Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.


2) I reinstalled JDK for 64b

After that, Eclipse started-up as before.

I hope this can help
Previous Topic:Porblem modifying view
Next Topic:Installing Oxygen on my computer
Goto Forum:
  


Current Time: Tue Nov 13 17:54:00 GMT 2018

Powered by FUDForum. Page generated in 0.02905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top