Jump to content
We've recently updated our Privacy Statement, available here ×

Problem with fonts: Input stream not found at : net/sf/jasperreports/fonts/fonts.xml


jacekplacek

Recommended Posts

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.xml

What 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:14



Post Edited by jacekplacek at 04/01/2012 11:19



Post Edited by jacekplacek at 04/01/2012 12:00



Post Edited by jacekplacek at 04/01/2012 17:26
Link to comment
Share on other sites

  • 7 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 1 month later...

Check what version of jasperreports_extension.properties you are using in you fat jar

I used to have same problems and running an older jasperreports_extension.properties with no net.sf.jasperreports.extension.registry.factory.repository

Reason 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...