bug:记录 Caused by: java.lang.NoClassDefFoundError: Could not initialize class
2012-11-14 18:33
513 查看
先说下我的问题:
自己开发的环境换了一个部署的环境之后,出现这个问题
解决办法:在环境变量中 增加 ANT_HOME(tomcat的根路径),并在 Path 在新增 ;%ANT_HOME%\bin
出错原因:目录结构发生变化,开发环境的tomcat直接在D盘的根目录,新环境多了一层文件夹得嵌套。D:\tomcat-6.0.35-x86\tomcat-6.0.35
至于其他的原因:例如 :没有sqljdbc.jar 啊,打包的时候 丢了 类包 网上有太多的 文章这里就不赘述了。
自己开发的环境换了一个部署的环境之后,出现这个问题
解决办法:在环境变量中 增加 ANT_HOME(tomcat的根路径),并在 Path 在新增 ;%ANT_HOME%\bin
出错原因:目录结构发生变化,开发环境的tomcat直接在D盘的根目录,新环境多了一层文件夹得嵌套。D:\tomcat-6.0.35-x86\tomcat-6.0.35
至于其他的原因:例如 :没有sqljdbc.jar 啊,打包的时候 丢了 类包 网上有太多的 文章这里就不赘述了。
相关文章推荐
- Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.threadpool.ThreadPool
- Caused by: java.lang.NoClassDefFoundError: Could not initialize class
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- 异常-----java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.core.KeyFactory
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.jackson.map.ObjectMapper
- java.lang.NoClassDefFoundError: Could not initialize class com.demo.jdbc.utils.MyJdbcUtils
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- java.lang.NoClassDefFoundError: Could not initialize class
- java.lang.NoClassDefFoundError:Could not initialize class........
- java.lang.NoClassDefFoundError: Could not initialize class org.springframework.beans.factory.BeanCre
- java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer .
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- java.lang.NoClassDefFoundError: Could not initialize class XXX
- java.lang.NoClassDefFoundError: Could not initialize class java.awt.Toolkit异常的解决方法
- android 升级ADT到22后,出现bug: Could not find class,或者Caused by: java.lang.ClassNotFoundException:异常
- java.lang.NoClassDefFoundError: Could not initialize class org.springframework.beans.factory.BeanCre
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- with root cause java.lang.NoClassDefFoundError:Could not initialize class com.AlipaySubmit
- java.lang.NoClassDefFoundError: Could not initialize class com.jacob.com.ComThread