Creating fat jar [message #631640] |
Fri, 08 October 2010 05:50  |
Eclipse User |
|
|
|
HI,
I'm developing a simple software that produces report using jasperreports. To create the report in PDF format, the iText library is included. I'm using Eclipse and fat jar plugin to create a single executable jar. When I run the software in Eclipse (without creating the jar), everything is fine. When I create the fat jar, I got the error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper at net.sf.jasperreports.engine.JasperExportManager.exportReport ToPdfFile(JasperExportManager.java:117)
So I thoght: "Ok, the iText library is not included in fat jar". But it is not so! It's included! is there, there inside with everything it needs. I exploded the jar and found it! So I'm wondering why in Eclipse IDE it works and running the fat jar not!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07768 seconds