linux环境下java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec

阅读更多

java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec
at com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:184)
at com.runqian.base4.util.ImageUtils.writeJPEG(Unknown Source:125)
at com.runqian.base4.util.ImageUtils.writeJPEG(Unknown Source:130)
at com.runqian.report4.model.expression.graph.StatisticGraph.getImageBytes(Unknown Source:141)
at com.runqian.report4.model.expression.function.CalcBarcode.calculate(Unknown Source:88)
at com.runqian.report4.model.expression.Expression.calculate(Unknown Source:570)
at com.runqian.report4.model.engine.ExtNormalCell.calculate(Unknown Source:818)
at com.runqian.report4.model.engine.ExtCellSet._$2(Unknown Source:2090)
at com.runqian.report4.model.engine.ExtCellSet._$1(Unknown Source:2176)
at com.runqian.report4.model.engine.ExtCellSet.calculate(Unknown Source:2123)
at com.runqian.report4.usermodel.Engine.calc(Unknown Source:119)
at com.runqian.report4.cache.lIlIIIIlIIIIlIlI.getReport(Unknown Source:118)
at com.runqian.report4.tag.HtmlTag.doStartTag(Unknown Source:275)
at org.apache.jsp.reportJsp.showReport_jsp._jspService(showReport_jsp.java:167)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:745)

 

java1.7抛弃了rt.jar,1.6自带的,可以手动把jar包加载进来或者直接切换jdk版本。

jdk安装参照   http://blog.csdn.net/qq_37740359/article/details/60140988

你可能感兴趣的:(linux环境下java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/JPEGCodec)