我看到了这个问题的帖子,作者已经解决了我编辑png启动文件的问题。然而, 在我的情况下,我没有对png文件进行任何更改,但是,我遇到了install4j的这个错误。 如果有人解决了这个问题,请帮忙。
[install4j] java.lang.IndexOutOfBoundsException
[install4j] at java.io.RandomAccessFile.writeBytes(Native Method)
[install4j] at java.io.RandomAccessFile.write(Unknown Source)
[install4j] at javax.imageio.stream.FileImageOutputStream.write(Unknown Source)
[install4j] at com.sun.media.imageioimpl.plugins.bmp.BMPImageWriter.write(BMPImageWriter.java:513)
[install4j] at javax.imageio.ImageWriter.write(Unknown Source)
[install4j] at javax.imageio.ImageIO.write(Unknown Source)
[install4j] at javax.imageio.ImageIO.write(Unknown Source)
[install4j] at com.A.B.D.W(ejt:2330)
[install4j] at com.A.B.D.Q(ejt:2859)
[install4j] at com.A.B.D.L(ejt:1319)
[install4j] at com.A.B.D.N(ejt:463)
[install4j] at com.A.B.D.d(ejt:555)
[install4j] at com.install4j.C.D.F.B(ejt:833)
[install4j] at com.install4j.C.D.B.R(ejt:629)
[install4j] at com.install4j.C.D.I(ejt:3315)
[install4j] at com.install4j.C.D.C(ejt:776)
[install4j] at com.install4j.C.A.A(ejt:1596)
[install4j] at com.install4j.C.B.¦(ejt:1736)
[install4j] at com.install4j.C.B.+(ejt:3290)
[install4j] at com.install4j.C.B.I(ejt:659)
[install4j] at com.install4j.Install4JApplication.?(ejt:3031)
[install4j] at com.A.L.?(ejt:2517)
[install4j] at com.install4j.Install4JApplication.main(ejt:3481)
[install4j] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[install4j] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[install4j] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[install4j] at java.lang.reflect.Method.invoke(Unknown Source)
[install4j] at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
[install4j] at com.exe4j.runtime.WinLauncher.main(Unknown Source)
[install4j] install4j: compilation failed. Reason: com.A.B.E: com.A.B.E: File Splash.png is not a valid image file.
答案 0 :(得分:0)
最高版本4.2.7,install4j包含一个JAR文件
[install4j installation directory]/lib/jai-imageio.jar
这个JAR文件包含一个古老的javax.imageio实现,并且当该API不是JRE的一部分时(Java 1.3之前),它是一个遗留物。
只需删除该JAR文件,问题就很可能会消失。