是否可以使用Java 8和Install4j 5.1.5生成无警告的安装文件 [英] Is it possible to generate with Java 8 and Install4j 5.1.5 a warning free installation file

查看:82
本文介绍了是否可以使用Java 8和Install4j 5.1.5生成无警告的安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Install4j 5.1.5,install4j-maven-plugin 1.0.5和Java 8 EA Build124.

We are using Install4j 5.1.5, install4j-maven-plugin 1.0.5 and Java 8 EA Build 124.

在生成安装文件期间,我们从install4j(超过100页)中收到了一些警告

During installation file generation we got couple of warnings from install4j (more than 100 pages)

 [warning] major version should be between 45 and 51 for JDK <= 1.7 

因此,我们有了一个安装文件,但是是否可以得到一个没有警告的安装文件?是否存在隐藏的开关以禁用JDK版本检查?

As a result we have a installation file, but is it possible to got a warning free installation file? Exist a hidden switch to disable JDK version check?

配置:

应用程序是第二个maven模块的一部分,并使用JDK 8进行编译.我们正在使用Java 8的语言功能.

Application is part of a second maven module and compile with JDK 8. We are using language feature of Java 8.

Install4j maven模块使用实际的Java8运行时以及以下编译器设置

Install4j maven module use actual java8 runtime and following compiler settings

 <maven.compiler.source>1.7</maven.compiler.source>
 <maven.compiler.target>1.7</maven.compiler.target>

如果将编译器目标更改为1.8,则会在install4j内的自定义视图组件中出现编译器错误

If we change compiler target to 1.8 we got a compiler error in a custom view component inside from install4j

 java.lang.UnsupportedClassVersionError: ... Unsupported major.minor version 52.0
 ....
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
 ....
         at java.beans.XMLDecoder.readObject(Unknown Source)    
 [INFO]  at com.install4j.config.a.e.z(ejt:237)
 [INFO]  at com.install4j.b.c.a.a(ejt:870)
 [INFO]  at com.install4j.b.c.a.a(ejt:849)
 [INFO]  at com.install4j.b.c.a.a(ejt:820)     

在我看来,我们在xerces代码生成中遇到了问题

It seems to me we got here a problem inside xerces code generation

推荐答案

这是因为install4j不支持Java 8,但是它仍然可以正常工作.

It is because install4j doesn't support java 8 but it does works anyway.

这篇关于是否可以使用Java 8和Install4j 5.1.5生成无警告的安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆