UOS Font ‘宋体‘ is not available to the JVM
统信uos 运行java项目打印字体缺失解决方法
- 问题
- 解决方式
- jvm安装解决方式
问题
在使用打印功能时报错:
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font ‘宋体’ is not available to the JVM. See the Javadoc for more details.
解决方式
在网上找到4种办法
1.系统安装字体
2.项目内放置字体文件
3.字体文件打包成jar包引用
4.jvm安装字体包(我用的这种,其它没作用)
jvm安装解决方式
1.从window系统复制字体文件(.ttf .ttc)到服务器
2.字体文件放置在 JAVA_HOME/jre/lib/fonts/fallback(没有fonts和fallback文件夹手动创建)
3.fallback文件夹内打开命令行,依次运行
mkfontscale
mkfontdir
文件夹内自动生成两个后缀名分别是.dir和.scale的文件
4.重启中间件(tomcat,东方通等)
UOS Font ‘宋体‘ is not available to the JVM相关推荐
- WAS 报错 Font '宋体' is not available to the JVM
今天把WAS迁移到新服务器上,启动应用程序后,有报错内容如下: 创建的异常:net.sf.jasperreports.engine.util.JRFontNotFoundException: Font ...
- 解决Centos 7 下 tomcat字体异常 Font '宋体' is not available to the JVM
错误提示: SEVERE: Servlet.service() for servlet [example] in context with path [/myproject] threw except ...
- Font '宋体' is not available to the JVM. See the Javadoc for more details.
Web项目集成Jasperreport出现错误"Font '宋体' is not available to the JVM. See the Javadoc for more details ...
- centos 7 java fonts_解决Centos 7 下 tomcat字体异常 Font '宋体' is not available to the JVM
错误提示: SEVERE: Servlet.service() for servlet [example] in context with path [/myproject] threw except ...
- 解决Linux下部署使用JasperReport的项目的错误:net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '宋体' i
CentOS 中部署JasperReport时出错: net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '宋体' is no ...
- Mac中使用LaTeX的中文字体出现Package fontspec Error: The font “宋体“ cannot be found.解决方案
文章目录 问题 分析与解决 小结 参考 问题 最近写论文需要用到LaTeX,之前我已经介绍过Mac上安装Mac TeX的方法,用起来跟在Windows中没有区别,但是在使用中文字体的时候,还是会发生诸 ...
- 使用LaTeX的中文字体出现Package fontspec Error: The font “宋体“ cannot be found.解决方案
项目场景: 提示:这里简述项目相关背景: 关于Windows 10:使用LaTeX的中文字体出现Package fontspec Error: The font "宋体" cann ...
- java.awt.font 宋体,SpringBoot项目集成字体工具类
场景:采用JasperReport生成报表时,若将模版中的字体配置成宋体时.部署在不同的系统上时,可能会出现中文乱码的情况,也可以适用于其他任何需要单独配置字体的第三方库. 首先,你可以给部署的服务器 ...
- net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 华文宋体 is not available to the JVM. S
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'xx' is not available to the JVM. 这是由 ...
最新文章
- 论文免费开源:NB-IoT智慧路灯监控系统
- java 折线图_java折线图的数据写入方法
- u-boot移植第二弹——移植2012.10u-boot到RealARM210 cortex-A8开发板
- Oracle数据库创建表空间及用户授权
- SpringBoot2.x整合quartz定时任务 快速入门
- 95-20-010-协议-Kafka的Request和Response
- string字符串转实体类_【Recursion】(6)实战练习:使用递归处理字符串
- SQL Server 2017 安装过程中的一点说明(有点意思)
- C++ (void)_r;什么意思
- Jmeter基础教程
- android button 点击没有音效
- SQL注入之堆叠及WAF绕过注入
- python request及pip命令挂代理后报错ValueError: check_hostname requires server_hostname的真正解决方法
- 32位w7怎么升64位|w7系统32位升级64位教程
- 团队协作与团队内部竞争_从个人团队到竞争组织
- PyQt5 结合 OpenCV 的开发之旅
- 计算机考试试题的问题,与计算机等级考试试题有关的几个问题
- 付费获取密码平台原理
- 【亡羊补牢】挑战数据结构与算法 第18期 LeetCode 面试题 08.08. 有重复字符串的排列组合(递归与回溯)
- 安装pr说找不到adobe服务器,Adobe 安装错误代码对照表及解决方案