Jump to content
JasperReports Library 7.0 is now available ×


  • Posts

  • Joined

  • Last visited

victor.s.gavrila's Achievements


Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges



  1. After some refactoring and testing, I found that the problem was caused by a NPE in the sun.awt.FontConfiguration class. It seems that the font library is looking for libfontconfig1 or the fontconfig.properties file. The easiest solution was to replace the JDK version in that container from openjdk-8-alpine (which doesn't add the font libraries) with the default debian openjdk-8 version
  2. The jasperreports-fonts-6.0.0.jar is part of my application jar now. I didn't update anything in this demo jar. Just made sure that the jrxml file references fonts from this jar <font fontName="DejaVu Sans" size="14"/> I get the same exception.
  3. I've added the fonts and properties file in my project's resource folder, but still not working. src -> main -> resources -> jasperreports/font/xxx.xml + ttf fonts src -> main -> resources -> jasperreports/template.jrxml src -> main -> resources -> jasperreports_extension.properties
  4. Hi, I'm trying to generate a pdf on a system (container )where are no fonts. I have a font jar with the font.xml with the font family description, the ttf fonts and the jasperreports_extension.properties file : net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactorynet.sf.jasperreports.extension.simple.font.families.xxx=jasperreports/font/xxx.xml Locally, everything works fine, but when I deploy on a different server I get this error: net.sf.jasperreports.engine.JRRuntimeException: Error initializing graphic environment. at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:63) Any thoughts?
  • Create New...