美文网首页
Mac os 10.13 + iReport 3.7.5 打不开

Mac os 10.13 + iReport 3.7.5 打不开

作者: i诺离 | 来源:发表于2017-11-30 10:11 被阅读40次

iReport 3.7.5 JDK环境配置

由于现在所有的项目都需要装iReport 3.7.5版本,而好多同事在安装的时候有闪退的情况,这里说一下修复方法。

1. JAVA SE 环境安装

  首先确保Mac上已经安装了java环境,iReport需要java环境的支持。(iReport 3.7.5要求使用的java版本为java version "1.6.0_65")

2. iReport中更改jdk路径

  安装好iReport以后,如果出现闪退的情况,说明java环境没有配置成功,需要进行如下的操作:

  • 右键iReport选择显示包内容,找到此文件/Contents/Resources/ireport/etc/ireport.conf,打开ireport.conf找到配置jdk环境的地方:
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
#jdkhome="/path/to/jdk"

将其改为

# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
jdkhome="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"

如果你的MAC上的jdkhome不是上面提及路径,可以在终端中执行以下命令来找到自己的jdkhome路径:
/usr/libexec/java_home -V

2. 重启iReport

  完成以上操作,重启iReport就可以打开了.

相关文章

网友评论

      本文标题:Mac os 10.13 + iReport 3.7.5 打不开

      本文链接:https://www.haomeiwen.com/subject/mbnmbxtx.html