在linux下使用BufferedImage生成图片时,会报错
会在该行代码中抛出错误
BufferedImage image
= new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
Caused by: java.lang.UnsatisfiedLinkError:
/root/jdk1.7.0_45/jre/lib/amd64/xawt/libmawt.so:
libXrender.so.1: cannot open shared object file: No such file or directory
遇到这个问题的时候,是使用的xshell6连接ubuntu16.4,解决办法
xshell取消隧道中的X11转发。
确定后重新连接,再执行程序就正常运行了