我尝试安装最新版本的iReport。安装成功,但现在打开它是给我错误。 Slash屏幕打开和关闭。
错误:
我的配置文件:
# ${HOME} will be replaced by user home directory according to platform
default_userdir="${HOME}/.${APPNAME}/5.6.0"
default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/5.6.0"
# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="-J-Xms256m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level=1000 -J-XX:MaxPermSize=512m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dnetbeans.exception.report.min.level=99999 "
# for development purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
#jdkhome="C:\Program Files (x86)\Java"
jdkhome="\jdk1.6.0_45"
# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=
请帮帮我
答案 0 :(得分:0)
看看这一行
# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
#jdkhome="C:\Program Files (x86)\Java"
jdkhome="\jdk1.6.0_45"
# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=
您需要设置一个指向JDK安装路径的环境变量JDK_HOME,或者更新您的配置文件以指向安装JDK的路径
答案 1 :(得分:0)
a)安装完成后,转到其\etc
文件夹,例如C:\Program Files (x86)\Jaspersoft\iReport-5.6.0\etc
,并为您自己的只读文件ireport.conf
添加写入权限,其中显示示例输出
b)用Notepad ++等编辑器打开ireport.conf
,然后为你的jdk home添加一行,例如jdkhome="C:\\Program Files\\Java\\jdk1.7.0_71"
(而不仅仅是jdkhome =“\ jdk1.6.0_45”)。注意:在Win OS上,您可能需要使用转义反斜杠。