17

I use Windows 10 and jre1.8.0_51. I don't know why when I start Eclipse it always displays an alert message "An error has occurred. See the log file null."

And I cannot open Eclipse thereafter. I tried to search Google and have no best solution. I uninstalled JRE and installed it again, but it still produces the same problem.

Line
  • 1,529
  • 3
  • 18
  • 42
Leang Socheat
  • 1,156
  • 2
  • 12
  • 23

20 Answers20

22

Try to launch it from the console like:

C:\path\to\eclipse\eclipse -clean

Also you try to can delete the file to fix the problem permanently as suggested here. Command would be something like below for windows.

del  YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.core.resources/.snap
Viraj Nalawade
  • 3,137
  • 3
  • 28
  • 44
11

I ran into the same problem. When I try running eclipse as Administrator, the problem went away.

Raju
  • 2,902
  • 8
  • 34
  • 57
Luis Ramos
  • 111
  • 1
  • 2
8

Had same issue. To resolve it : Go to Eclipse directory -> Open CMD -> eclipse -clean

worked well.

Fidias
  • 108
  • 2
  • 4
5

I had the same issue with Windows 10. Give full control to your user in security settings on the eclipse and workspace folders.

I also found the read only property was set on the eclipse and workspace folders, which I unset.

The log file can be found in the eclipse\configuration folder.

insys
  • 1,288
  • 13
  • 26
Bally
  • 51
  • 1
  • 2
4

I deleted .metadata from the workspace and ran the eclipse as run as administrator and it worked for me.

roottraveller
  • 7,942
  • 7
  • 60
  • 65
shilpa
  • 41
  • 1
3

I found that running Eclipse (STS 3.9) as administrator worked, which is a permissions issue. Giving the required users read/write/execute permissions to the config and workspace folders did the trick (they couldn't write previously).

Nielsvh
  • 1,151
  • 1
  • 18
  • 31
1

I too came across the same error. My log file says : Java.io.FileNotFoundException: C:\Eclipse\eclipse-jee-luna-SR2-win32-x86_64\eclipse\configuration\org.eclipse.osgi.manager.fileTableLock (Access is denied)

So, i copied entire eclipse in another folder and it worked for me.

So, for me the problem was write access, because eclipse need write across configuration folder, in my case eclipse was unzipped by some other user and i didn't have the access.

mohdasha
  • 311
  • 1
  • 7
1

I encountered the same problem, and then I found out that, the eclipse distribution works fine with JDK 8. I previously ran JDK 10 and I got this error. Uninstalling JDK 10 and installing JDK 8 fixed the issue for me.
Hope this helps!!

Niranjan Agnihotri
  • 916
  • 2
  • 11
  • 19
1

Make sure your java version is compatible with your eclipse version!

It is an easy solution that worked for me. Deleting the .metadata did not worked. I was using eclipse MARS 2.0 but set my JAVA_HOME to java 17. However, Mars does not support java 17. As soon as I switched it back to java 14 eclipse launched again.

0

Make sure your eclipse launch folder does not have read only property/attribute

My eclipse resides at below location and If I right click ->properties- checked attributes were read only. I unchecked read only and restarted eclipse. Issue was resolved. C:\Users\Ashish\Downloads\eclipse-jee-mars-2-win32-x86_64 (1)\eclipse

Tokci
  • 1,220
  • 1
  • 23
  • 31
0

Here I'm just share, if you can not copy file .metadata on mac because that file invisible (JUST on Mac issue), try this step:

  1. compress your file .metadata backup
  2. copy file .zip
  3. paste file .zip to path/workspace
  4. double click file .zip
  5. done :-)
0

Open the eclipse.exe with the right mouse button and open with admin rights and that's it!

Harun
  • 1
0

I had the same problem and deleting the file .metadata/.plugins/org.eclipse.core.resources/.snap and try it should work

Prem S
  • 217
  • 3
  • 8
0
  1. Uninstall Java JDK

  2. Reinstall JDK 8

  3. Run Eclipse as administrator

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
M.Sobhy
  • 21
  • 4
0

Remove the .snap file from <WORKSPACE-DIRECTORY>\.metadata\.plugins\org.eclipse.core.resources

Prakash
  • 630
  • 3
  • 10
  • 20
0

The mentioned solutions didn't work for me under Windows OS. I just deleted .manager from eclipse\configuration\org.eclipse.core.runtime and from eclipse\configuration\org.eclipse.osgi and the issue was fixed.

mtareq
  • 171
  • 2
  • 4
0

Delete the .metadata folder in eclipse. That should resolve the issue. The .metadata folder is recreated by eclipse once it is able to launch successfully.

Nikhil Katre
  • 2,114
  • 23
  • 22
0

I too got the same error in My Windows 10 pc while using Eclipse 2020 version

Just delete the .metadata folder and then try to run eclipse again it will solve the problem and run fine. .Metadata folder will get created once again by itself as we open eclipse.

Aditya
  • 31
  • 6
0

I uninstalled JRE and installed it again, but it still produces the same problem.

Turns out that my version of eclipse doesn't work with jdk17 (installed it using Amazon Corretto 17). So uninstalled Amazon Corretto 17 (automatically uninstalls jdk17 as well) and installed jdk11 using Amazon Corretto 11.

Thankfully worked for me! What I tried was similar to what you tried, but worth trying anyway.

Anish Narayan
  • 72
  • 2
  • 8
0

Re-install Eclipse or add vm path in your eclipse.ini file.

-vm
C:/<Your Path>/jdk1.8.0/jre/bin/javaw.exe

Note: Change javaw.exe path according to your system