Mac下载iReport安装之后无法打开解决办法

iReport的运行是依赖于JDK的 我使用的是Mac系统 下载的iReport-5.0.0.dmg版本

iReport-5.0.0.dmg百度网盘下载地址
链接: https://pan.baidu.com/s/1ECTVHMvtM0fyK4-X1Q_4jg 密码: whxi

问题:打开直接闪退,猜测可能原因是jdk版本不对,我用的是1.8版本的。因为不支持1.8版本,现在要改为1.7

jdk-7u80-macosx-x64.dmg 百度网盘下载
链接: https://pan.baidu.com/s/1qAR–Vcgp2fDNuZoNrPhlQ 密码: 972s

安装好以后,找到安装的iReport,右键显示包内容

这里写图片描述

打开终端

cd /Applications/Jaspersoft\ iReport\ Designer.app/Contents/Resources/ireport/etc
ls

可以看到ireport.conf文件

sudo vim ireport.conf

编辑ireport.conf
找到并修改

default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch

jdkhome="/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home"

之后进入bin目录下双击ireport命令窗口打开 就可以了

这里写图片描述

这里写图片描述

猜你喜欢

转载自blog.csdn.net/wtdask/article/details/81233191
今日推荐