jacekplacek Posted April 1, 2012 Share Posted April 1, 2012 I have problem with using jasperreports-fonts-4.5.1.jar in desktop application. When i run the same app by: java -cp path/to/jasperreports-fonts-4.5.1.jar myApp-without-fonts.jar MainClass (fonts.jar is in classpath) everything works, but when i assembly application by: mvn assembly:assembly (fonts jar is unpacked inside myApp.jar) and run by: java -jar target/myApp.jar i get error: Input stream not found at : net/sf/jasperreports/fonts/fonts.xmlWhat is the difference? How to use fonts but have it inside myApp.jar ? http://www.google.com/uds/css/small-logo.png Code: Post Edited by jacekplacek at 04/01/2012 11:14Post Edited by jacekplacek at 04/01/2012 11:19Post Edited by jacekplacek at 04/01/2012 12:00Post Edited by jacekplacek at 04/01/2012 17:26 Link to comment Share on other sites More sharing options...
nevius22 Posted November 21, 2012 Share Posted November 21, 2012 Hey did you fix this? I have exactly the same problem! It works when running the application normally but I get the same exact exception when i run as jar file! Please help I need to finish this project for school. Link to comment Share on other sites More sharing options...
vharcq Posted January 2, 2013 Share Posted January 2, 2013 Check what version of jasperreports_extension.properties you are using in you fat jarI used to have same problems and running an older jasperreports_extension.properties with no net.sf.jasperreports.extension.registry.factory.repositoryReason for me was assembly/fatjar jasperreports-font.4.0.0.jar and jasperreports.5.0.0.jar. First and old version replacing new one. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now