Eclipse 中的 .metadata\.log 错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16379438/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:41:49  来源:igfitidea点击:

.metadata\.log error in eclipse

eclipseeclipse-plugin

提问by Arwa

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 有问题,它一直工作到昨天,现在当我尝试打开它时,我收到此消息 [发生错误,请参阅日志文件 workspacename.metadata.log] 我搜索了一些建议,例如删除一些文件在 .metadata.plugins 上,但不与我合作!所以任何帮助

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

采纳答案by Arwa

I solved this problem by follow this step:

我按照以下步骤解决了这个问题:

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

1-删除元数据文件夹(工作区) 2-重新安装 java JDK 3 重新解压 eclipse

回答by Sameera Chathuranga

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

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

Update 2018I 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

更新 2018我不再推荐这个答案。我在 2014 年对其进行了测试,当时它对我来说适用于较旧的 Eclipse IDE。我不再使用 eclipse 进行开发了。我建议使用 android studio 进行 android 开发。谢谢

回答by alex

1) You have to delete the folder metadatain your workspace.

1) 您必须删除metadata工作区中的文件夹。

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

2) 像往常一样启动 Eclipse - 该文件夹metadata是通过启动 Eclipse 新创建的

回答by ibrahimgunes

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.

如果您的操作系统是 Mac OS 并且您使用的是 Java 1.9 版本,则会发生此错误并且 eclipse 无法启动。所以你需要将你的 java 版本降级到 1.8 版本,直到这个问题得到解决。

回答by Er Amit Anand

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

您必须删除工作区中的文件夹元数据。是解决此问题的最佳方法。解决了我的问题。

回答by Er Prajesh

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.

我已经尝试了来自 stackoverflow、youtube 的所有解决方案,即使我已经重新安装了操作系统等,但仍然显示相同的错误。将 JDK 1.9 降级到 JDK 1.8 对我有用。

回答by Sriram Kodavati

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.

由于 eclipse 的 jdk 版本不兼容,我在打开 eclipse 时遇到了同样的错误。我使用eclipse eclipse LUNA,我下载了eclipse luna无法处理的jdk10.1版本,它只能处理jdk8或以下版本。

回答by wikimix

I added -cleanin the top of eclipse.inifile and it works for me.

-cleaneclipse.ini文件的顶部添加了它,它对我有用

回答by otc

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.

如果您最近更新了 Java 版本,除非明确指定,否则 eclipse 很可能正在尝试使用新版本。只需明确指定您之前使用的 jdk。

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

如果使用 MAC,步骤将如下所示:

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

对我来说 OLDER_JDK 是 jdk1.8.0_144.jdk

回答by az fav

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

删除 .metadata 文件夹或按照本教程https://www.youtube.com/watch?v=i7qOGSYcw8Y https://mauricemutetingundi.blogspot.com/2019/03/problem-solved-error-has-occurred-see.html然后开始日食。如果项目在 Eclipse 侧边栏上丢失,请通过单击文件菜单并选择适当的选项再次加载它们