How to add a .zip file to the eclipse buildpath?

0

I have some problems when I put the icon images in my project. I read that we can put the images through a .zip file using the configure buildPath of eclipse so that at the time of creating the executable you have no problem loading the images, but when I try this solution in my project, I always get an error message. I actually get 4 messages:

1 ° Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".

Exception:java.lang.IllegalArgumentException: MALFORMED
at java.util.zip.ZipCoder.toString(null:-1)
at java.util.zip.ZipFile.getZipEntry(null:-1)
at java.util.zip.ZipFile.access$900(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.next(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(null:-1)
at org.eclipse.jdt.internal.core.util.Util.getJdkLevel(Util.java:850)
at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:80)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.initializePackageNames(JavaProjectElementInfo.java:253)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.getProjectCache(JavaProjectElementInfo.java:226)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.newNameLookup(JavaProjectElementInfo.java:291)
at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2329)
at org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:61)
at org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:68)
at org.eclipse.jdt.internal.core.CancelableNameEnvironment.(CancelableNameEnvironment.java:26)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:675)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1190)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:812)
at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:551)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:543)
at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:486)
at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:173)
at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:158)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

2 ° Exception occurred during problem detection:

Exception:java.lang.IllegalArgumentException: MALFORMED
at java.util.zip.ZipCoder.toString(null:-1)
at java.util.zip.ZipFile.getZipEntry(null:-1)
at java.util.zip.ZipFile.access$900(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.next(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(null:-1)
at org.eclipse.jdt.internal.core.util.Util.getJdkLevel(Util.java:850)
at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:80)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.initializePackageNames(JavaProjectElementInfo.java:253)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.getProjectCache(JavaProjectElementInfo.java:226)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.newNameLookup(JavaProjectElementInfo.java:291)
at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2329)
at org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:61)
at org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:68)
at org.eclipse.jdt.internal.core.CancelableNameEnvironment.(CancelableNameEnvironment.java:26)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:178)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:271)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:191)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:90)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:724)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:790)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1250)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:128)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:110)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:90)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:154)
at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:89)
at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:104)
at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:73)
at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:207)

3rd Invalid ZIP archive: C: \ Users \ AlexSama \ eclipse-workspace \ ProjectSaveSavers \ bin \ images.zip

Exception:org.eclipse.epp.logging.aeri.core.util.NoStackTrace: This event was logged without a stack trace. A synthetic stack trace was hence inserted.
at org.eclipse.jdt.internal.core.util.Util.log(Util.java:1865)
at org.eclipse.jdt.internal.core.util.Util.log(Util.java:1851)
at org.eclipse.jdt.internal.core.JarPackageFragmentRoot.computeChildren(JarPackageFragmentRoot.java:104)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.initializePackageNames(JavaProjectElementInfo.java:253)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.getProjectCache(JavaProjectElementInfo.java:226)
at org.eclipse.jdt.internal.core.JavaProjectElementInfo.newNameLookup(JavaProjectElementInfo.java:291)
at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2329)
at org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:61)
at org.eclipse.jdt.internal.core.SearchableEnvironment.(SearchableEnvironment.java:68)
at org.eclipse.jdt.internal.core.CancelableNameEnvironment.(CancelableNameEnvironment.java:26)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:178)
at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:271)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:191)
at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:90)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:724)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:790)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1250)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:128)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.access$0(JavaReconcilingStrategy.java:110)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy$1.run(JavaReconcilingStrategy.java:90)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:87)
at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconcile(JavaReconcilingStrategy.java:154)
at org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrategy.reconcile(CompositeReconcilingStrategy.java:89)
at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:104)
at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:73)
at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:207)

4th Background Indexer Crash Recovery

Exception:java.lang.IllegalArgumentException: MALFORMED
at java.util.zip.ZipCoder.toString(null:-1)
at java.util.zip.ZipFile.getZipEntry(null:-1)
at java.util.zip.ZipFile.access$900(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.next(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(null:-1)
at java.util.zip.ZipFile$ZipEntryIterator.nextElement(null:-1)
at org.eclipse.jdt.internal.core.search.indexing.AddJarFileToIndex.execute(AddJarFileToIndex.java:229)
at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:394)
at java.lang.Thread.run(null:-1)

How can I resolve this problem?

    
asked by anonymous 13.07.2018 / 02:10

0 answers