Archive for required library:xxxxx/spring-beans-3.2.4.RELEASE.jar in project XXXXX cannot be read or is not a valid ZIP file

今天在导入maven项目的时候在problems视图中报错:

  Archive for required library:xxxxx/spring-beans-3.2.4.RELEASE.jar in project XXXXX cannot be read or is not a valid ZIP file

  

网上的有一下解决方法:

  1.close project 然后open project。

  2.重新启动eclips。

  3.去.m2资源库中删除报错的jar包,然后选中项目:右键->Maven4Myeclipse->Update Dependencies,重新下载相关的jar包。

  4.如果还报其他jar包的错误,就重复第三条操作。

  

时间: 2024-10-13 21:00:20

Archive for required library:xxxxx/spring-beans-3.2.4.RELEASE.jar in project XXXXX cannot be read or is not a valid ZIP file的相关文章

eclipse Archive for required library in project cannot be read or is not a valid ZIP file

遇到问题: 由于项目开发需要用到spark的第三方jar包,于是下载spark的jar包并引入,显示问题如下: Archive for required library: 'F:/lib/spark-assembly-1.5.2-hadoop2.4.0.jar' in project 'project' cannot be read or is not a valid ZIP file Archive for required library: 'F:/lib/spark-examples-1.

maven error: 用maven下载的spring jar包出现该异常 cannot be read or is not a valid ZIP file

使用maven获取相关的依赖jar包时,出现异常:Archive for required library: 'D:/maven/repository/org/springframework/spring-context/4.0.0.RELEASE/ in project 'webmvc' cannot be read or is not a valid ZIP file 但是我去相关的目录找到了相关的jar包,但是IDE中仍然报错:在搜索引擎上找到了一个处理的方法,就是将该jar包的上一级目录

archive for required library...

最近把移动硬盘上的一个Android项目复制到笔记本上面,import后项目文件夹始终有一个红色叹号,console里面提示"archive for required library...",原来是libs\android-support-v4.jar文件被损坏了,重新下载并覆盖这个文件,恢复正常了!!!

Java,AWTUtilities,eclipse报编译错误:Access restriction: The type 'AWTUtilities' is not API (restriction on required library 'C:\Program Files\Java\jre7\lib\rt.jar')

[场景]调用com.sun.awt.AWTUtilities时,eclipse提示编译错误: Access restriction: The type 'AWTUtilities' is not API (restriction on required library 'C:\Program Files\Java\jre7\lib\rt.jar') [分析]eclipse项目默认的jre版本较早. com.sun.awt.AWTUtilities是在JDK 6 update10中增加的. [解决

Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 报错

报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar   解决方法: Project -> Properties -> libraries, 先remove掉JRE System Library,然后再Add Library重新加入. 将jre项目用自己下载的jre

Access restriction: The constructor SunJCE() is not accessible due to restriction on required library(转)

错误信息: Access restriction: The constructor SunJCE() is not accessible due to restriction on required library C:\Program Files \Java\jre7\lib\ext\sunjce_provider.jar Access restriction: The type TaskTopicResolver is not accessible due to restrict 做NC的时

报错: The type ByteInputStream is not accessible due to restriction on required library

报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar   解决方法: Project -> Properties -> libraries, 先remove掉JRE System Library,然后再Add Library重新加入.

spring beans源码解读

spring beans下面有如下源文件包: org.springframework.beans, 包含了操作java bean的接口和类.org.springframework.beans.annotation, 支持包,提供对java 5注解处理bean样式的支持.org.springframework.beans.factory, 实现spring轻量级IoC容器的核心包.org.springframework.beans.factory.access, 定位和获取bean工程的辅助工具类

spring beans源码解读之--Bean的注解(annotation)

随着spring注解的引入,越来越多的开发者开始使用注解,这篇文章将对注解的机制进行串联式的讲解,不求深入透彻,但求串起spring beans注解的珍珠,展示给大家. 1. spring beans常用的注解: public @interface Autowired:可以对成员变量.方法和构造函数进行标注,来完成自动装配的工作. Marks a constructor, field, setter method or config method as to be autowired by Sp