Eclipse错误:几个项目的Manifest主要属性的签名文件摘要无效

时间:2012-09-04 22:36:13

标签: java eclipse manifest

我用Google搜索,但我找不到有类似问题的人。我在我自己的几个项目中遇到了这个错误,以及像这样的eclipse jar。由于这些问题,我的项目无法编译。

  

!ENTRY org.eclipse.core.resources 4 2 2012-09-04 17:17:18.695!MESSAGE   从插件调用代码时出现问题:   “org.eclipse.core.resources”。 !STACK 0 java.lang.SecurityException:   Manifest主要属性的签名文件摘要无效   sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:240)     在   sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193)     在java.util.jar.JarVerifier.processEntry(JarVerifier.java:305)at at   java.util.jar.JarVerifier.update(JarVerifier.java:216)at   java.util.jar.JarFile.initializeVerifier(JarFile.java:341)at at   java.util.jar.JarFile.getInputStream(JarFile.java:406)at   org.eclipse.pde.internal.core.ExternalLibraryCache.extractJar(ExternalModelManager.java:320)     在   org.eclipse.pde.internal.core.ExternalLibraryCache.getExtractedLibraries(ExternalModelManager.java:234)     在   org.eclipse.pde.internal.core.ExternalModelManager.getExtractedLibraries(ExternalModelManager.java:160)     在   org.eclipse.pde.internal.core.PDEClasspathContainer.addExternalPlugin(PDEClasspathContainer.java:72)     在   org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.addPlugin(RequiredPluginsClasspathContainer.java:256)     在   org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.addDependency(RequiredPluginsClasspathContainer.java:230)     在   org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.addDependency(RequiredPluginsClasspathContainer.java:214)     在   org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.computePluginEntries(RequiredPluginsClasspathContainer.java:129)     在   org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.getClasspathEntries(RequiredPluginsClasspathContainer.java:88)     在   org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2695)     在   org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2853)     在   org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1958)     在   org.eclipse.jdt.internal.core.JavaProject.computeExpandedClasspath(JavaProject.java:506)     在   org.eclipse.jdt.internal.core.JavaProject.computeExpandedClasspath(JavaProject.java:528)     在   org.eclipse.jdt.internal.core.JavaProject.getExpandedClasspath(JavaProject.java:1563)     在   org.eclipse.jdt.internal.core.builder.NameEnvironment.computeClasspathLocations(NameEnvironment.java:93)     在   org.eclipse.jdt.internal.core.builder.NameEnvironment。(NameEnvironment.java:41)     在   org.eclipse.jdt.internal.core.builder.JavaBuilder.initializeBuilder(JavaBuilder.java:603)     在   org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:167)     在   org.eclipse.core.internal.events.BuildManager $ 2.run(BuildManager.java:728)     在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)at   org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)     在   org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)     在   org.eclipse.core.internal.events.BuildManager $ 1.run(BuildManager.java:292)     在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)at   org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)     在   org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)     在   org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)     在   org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)     在   org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)     在   org.eclipse.jdt.internal.ui.util.CoreUtility $ BuildJob.run(CoreUtility.java:165)     在org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

webernets告诉我,特定的jar文件存在问题,但我没有遇到过在几个jar文件中出现此问题的解释。我正在使用Helios service pack 2,而我在另一台机器上使用相同的zip(用于Helios)(并且没有出现这些错误)所以我不认为该问题是下载中的损坏文件。

1 个答案:

答案 0 :(得分:0)

检查Eclipse使用的JRE的版本。安全性异常由运行时处理,因此您用于运行Eclipse的JRE可能与Eclipse用于编译的库不匹配。