I don't have this error locally, only on the docker containers:
"There was an exception while trying to navigate to 'report-pdf' with the root cause 'net.sf.jasperreports.engine.util.JRFontNotFoundException: Font "Arial" is not available to the JVM. See the Javadoc for more details.'
Dockerfile:
FROM openjdk:17
ARG JAR_FILE=target/*.jar
COPY ./target/Assets-1.0.0.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
Solution:
https://mvnrepository.com/artifact/ar.com.fdvs/DynamicJasper-core-fonts/2.1
<!-- https://mvnrepository.com/artifact/ar.com.fdvs/DynamicJasper-core-fonts -->
<dependency>
<groupId>ar.com.fdvs</groupId>
<artifactId>DynamicJasper-core-fonts</artifactId>
<version>2.1</version>
</dependency>