java.lang.NoClassDefFoundError: Could not initialize class org.springframework.core.io.support.Path

2025-02-23 05:39:54
推荐回答(5个)
回答1:

NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageWriter
没有找到类,没倒包吧
你把rt.jar加入项目源中,清除一下缓存,在重启一下服务试试!
rt.jar需要放在服务器的classpath路径下面

回答2:

一般都不用myeclipse加这些的,自己把那些jar包复制到lib文件夹下就是了

回答3:

jar包有问题spring-core包没有吧!要么就是spring-core这个包版本不对,里面的Path...那个类没有!你在你的工程里面找spring-core包看看

回答4:

没有找org.springframework.core.io.support.Path 这个类 你看看版本是不是对的

回答5:

从这个错误提示来说。。路径不对,你能确保有webroot/WEB-INF/applicationContext.xml??