13

I have a problem with Eclipse, it worked until yesterday, and now when i try to open it, i get this message [ an error has occurred see the log file workspacename.metadata.log] i searched i found some Suggestions like delete some files on .metadata.plugins but not working with me ! so any help

eclipse.buildId=v21.1.0-569685
java.version=1.7.0_10
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ar_SA
Framework arguments:  -product com.android.ide.eclipse.adt.package.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
com.android.ide.eclipse.adt.package.product
Henrique Ordine
  • 3,337
  • 4
  • 44
  • 70
Arwa
  • 139
  • 1
  • 1
  • 5

15 Answers15

9

Delete: /YOUR PATH TO WORKSPACE/.metadata/.plugins/org.eclipse.core.resources

Update 2018 I do not recommend this answer anymore. I was tested it 2014 and it was working for me for older eclipse IDE at that time. I m not using eclipse anymore for development. I recommended using an android studio for android development. Thank you

Sameera Chathuranga
  • 3,638
  • 3
  • 27
  • 48
5

1) You have to delete the folder metadata in your workspace.

2) Start Eclipse as usual - the folder metadata is newly creating by starting Eclipse

Karthikeyan.R.S
  • 3,991
  • 1
  • 19
  • 31
alex
  • 75
  • 1
  • 1
3

If your operation system is Mac OS and you are using version of Java 1.9 this error occurs and eclipse don't start up. So you need to downgrade your java version to 1.8 release until this issue fixed.

ibrahimgunes
  • 131
  • 8
2

You have to delete the folder metadata in your workspace. is the best way to resolved this issue. solved my problem.

Er Amit Anand
  • 50
  • 1
  • 7
2

I added -clean in the top of eclipse.ini file and it works for me.

wikimix
  • 457
  • 6
  • 23
  • This worked for me as well and is a less invasive change than deleting all metadata. – sdfx Oct 04 '20 at 16:43
0

I got the same error while opening eclipse because of incompatible jdk version with eclipse. I use eclipse eclipse LUNA and i downloaded jdk10.1 version which eclipse luna cannot handle,it can handle only jdk8 or below versions.

0

Windows 64 OS user here. I solved this problem by installing the latest JDK, as of now jdk-8u302-windows-x64.

Jona
  • 35
  • 6
0

I am using Ubunut 20.04
I have JDK 11 and JDK 8 installed, and I downloaded Eclipse Luna
By defaul JDK 11 was installed. I tried to install Eclipse but didn't work.
I changed the version by JDK 8 using:

 sudo update-alternatives --config java 

Pulse intro to select the version according to the numbers that come out: example: 0,1, etc
Again I installed and it worked with JDK8.

fcva
  • 379
  • 3
  • 8
-1

Well, my suggestion is you follow the instructions and actually see the log file workspacename.metadata.log. If you already did, attach the relevant stack trace so we can help.

Elist
  • 5,313
  • 3
  • 35
  • 73
  • oh, i was delete this file !! i try to open eclipse again than i get this message [ cant open myprojectname\lib\jvm.cfg ] !! – Arwa May 05 '13 at 18:38
-1

I solved this problem by follow this step:

1-delete metadata folder (workspace) 2-reinstall java JDK 3 re unzip eclipse

Arwa
  • 139
  • 1
  • 1
  • 5
-1

I have tried every solution from stackoverflow, youtube even i have reinstalled OS etc. but still it as showing same error.Downgrading JDK 1.9 to JDK 1.8 worked for me.

Er Prajesh
  • 61
  • 1
  • 5
-1

If you recently updated your java version, most likely eclipse is trying to use the new version unless explicitly specified. Just explicitly specify the jdk you were using before.

If using a MAC the steps will look as follow for example:

ECLIPSE FOLDER/Contents/Eclipse/eclipse.ini.

Add the following

-vm
/Library/Java/JavaVirtualMachines/OLDER_JDK/Contents/Home/bin

For me OLDER_JDK was jdk1.8.0_144.jdk

otc
  • 694
  • 1
  • 9
  • 40
-1

Just delete the snap file located under metadata/.plugins/org.eclipse.core.resources/

That might fix it.

jack
  • 81
  • 6
-1

Deleting workspace/.metadata will remove all your downloaded plugins and libraries which I do not recommend. The best and easy solution is to change your JAVA_HOME path. If you are using multiple JDKs then change the JAVA_HOME path to the one which you have used in Eclipse recently. You can check the Java version using the command java -version.

-2

Delete .metadata folder or follow this tutorial https://www.youtube.com/watch?v=i7qOGSYcw8Y https://mauricemutetingundi.blogspot.com/2019/03/problem-solved-error-has-occurred-see.html then start eclipse. If the the projects are lost on eclipse sidebar load them again by clicking file menu and selecting appropriate options

az fav
  • 96
  • 9
  • In order to be immediately helpful to readers (and avoid [Linkrot](https://en.wikipedia.org/wiki/Link_rot)), we prefer answer that provide at least a solid summary of the solution directly, with links used to offer additional information. [More info on link only answers](https://meta.stackoverflow.com/tags/link-only-answers/info). – Stefan Crain Mar 27 '19 at 15:39