Apache CXF requires java version 1.5 or higher. You are currently usin g java version 1.7.
来源:互联网 发布:zookeeper java 实例 编辑:程序博客网 时间:2024/06/06 18:37
gentlemen:
It would seem to be impossible to follow the readme.txt directions provided
with Apache CXF 2.4.2 in the samples directory on Windows 7 Ultimate edition.
These instructions are intended to compile all of the sample projects using Ant.
I set up the environment as required. The environment seemed to check out using
a command shell window.
I set the working directory to: "C:\Program Files\Apache Software
Foundation\apache-cxf-2.4.2\samples"
I tried the command: "ant -buildfile .\common_build.xml war"
I failed with this message:
BUILD FAILED
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\common_buil
d.xml:75: Apache CXF requires java version 1.5 or higher. You are currently usin
g java version 1.7.
I managed to work around that error by changing "common_build.xml"
I changed this:
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</or>
</condition>
<fail message="Apache CXF requires java version 1.5 or higher. You are
currently using java version ${ant.java.version}."
unless="is.java.version.15"/>
to this:
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
<equals arg1="${ant.java.version}" arg2="1.7"/>
</or>
</condition>
<fail message="Apache CXF requires java version 1.5 or higher. You are
currently using java version ${ant.java.version}."
unless="is.java.version.15"/>
I then got past the java Version error message.
I next tried "ant -buildfile .\common_build_PS.xml war"
I failed with this message:
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples>ant -buildf
ile .\common_build_PS.xml war
Buildfile: C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\
common_build_PS.xml
[loadfile] Do not set property srcbuild.classpath as its length is 0.
BUILD FAILED
Target "war" does not exist in the project "cxf build file".
Total time: 1 second
I examined the buildfile, and verified that indeed there is no "target name"
war in this file.
I did some more digging and discovered that the "FULL WAR" build should happen
by default since about CXF 2.0.2.
So I tried this command:
"ant -buildfile .\common_build_PS.xml"
I failed with this message:
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples>ant -buildf
ile .\common_build_PS.xml
Buildfile: C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\
common_build_PS.xml
[loadfile] Do not set property srcbuild.classpath as its length is 0.
maybe.generate.code:
[loadfile] Do not set property srcbuild.classpath as its length is 0.
BUILD FAILED
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\common_buil
d_PS.xml:120: The following error occurred while executing this line:
Target "generate.code" does not exist in the project "cxf build file".
Total time: 1 second
I am running out of ideas here. The buildfiles were almost exactly the same for
versions 2.3.6, 2.2.12, and 2.0.10
Also, I cannot find any installation instructions per se.
The
CXF 2.4.2 Release Notes talk about
Installation Prerequisites ( which I completed)
and
Building the Samples ( which I cannot do, as seen above)
but do not say anything about performing the actual installation.
Can you help me please?
Thank you,
Patrick Sofin
719-963-4037
pasofin@xxxxxxxxx
It would seem to be impossible to follow the readme.txt directions provided
with Apache CXF 2.4.2 in the samples directory on Windows 7 Ultimate edition.
These instructions are intended to compile all of the sample projects using Ant.
I set up the environment as required. The environment seemed to check out using
a command shell window.
I set the working directory to: "C:\Program Files\Apache Software
Foundation\apache-cxf-2.4.2\samples"
I tried the command: "ant -buildfile .\common_build.xml war"
I failed with this message:
BUILD FAILED
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\common_buil
d.xml:75: Apache CXF requires java version 1.5 or higher. You are currently usin
g java version 1.7.
I managed to work around that error by changing "common_build.xml"
I changed this:
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</or>
</condition>
<fail message="Apache CXF requires java version 1.5 or higher. You are
currently using java version ${ant.java.version}."
unless="is.java.version.15"/>
to this:
<condition property="is.java.version.15">
<or>
<equals arg1="${ant.java.version}" arg2="1.5"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
<equals arg1="${ant.java.version}" arg2="1.7"/>
</or>
</condition>
<fail message="Apache CXF requires java version 1.5 or higher. You are
currently using java version ${ant.java.version}."
unless="is.java.version.15"/>
I then got past the java Version error message.
I next tried "ant -buildfile .\common_build_PS.xml war"
I failed with this message:
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples>ant -buildf
ile .\common_build_PS.xml war
Buildfile: C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\
common_build_PS.xml
[loadfile] Do not set property srcbuild.classpath as its length is 0.
BUILD FAILED
Target "war" does not exist in the project "cxf build file".
Total time: 1 second
I examined the buildfile, and verified that indeed there is no "target name"
war in this file.
I did some more digging and discovered that the "FULL WAR" build should happen
by default since about CXF 2.0.2.
So I tried this command:
"ant -buildfile .\common_build_PS.xml"
I failed with this message:
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples>ant -buildf
ile .\common_build_PS.xml
Buildfile: C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\
common_build_PS.xml
[loadfile] Do not set property srcbuild.classpath as its length is 0.
maybe.generate.code:
[loadfile] Do not set property srcbuild.classpath as its length is 0.
BUILD FAILED
C:\Program Files\Apache Software Foundation\apache-cxf-2.4.2\samples\common_buil
d_PS.xml:120: The following error occurred while executing this line:
Target "generate.code" does not exist in the project "cxf build file".
Total time: 1 second
I am running out of ideas here. The buildfiles were almost exactly the same for
versions 2.3.6, 2.2.12, and 2.0.10
Also, I cannot find any installation instructions per se.
The
CXF 2.4.2 Release Notes talk about
Installation Prerequisites ( which I completed)
and
Building the Samples ( which I cannot do, as seen above)
but do not say anything about performing the actual installation.
Can you help me please?
Thank you,
Patrick Sofin
719-963-4037
pasofin@xxxxxxxxx
0 0
- Apache CXF requires java version 1.5 or higher. You are currently usin g java version 1.7.
- AS中报Gradle 3.3 requires Java 7 or later to run.You are currently using Java 6.解决办法
- Mac OS Andriod Studio:Gradle 3.3 requires Java 7 or later to run.You are currently using Java 6
- C#发布程序时出现Signtool requires CAPICOM version 2.1.0.1 or higher错误的解决办法
- C#发布程序时出现Signtool requires CAPICOM version 2.1.0.1 or higher错误的解决办法
- fatal error C1189: #error : WTL requires IE version 3.0 or higher
- fatal error C1189: #error : WTL requires IE version 3.0 or higher
- java.lang.IllegalStateException: SpringJUnit4ClassRunner requires JUnit 4.12 or higher
- You are attempting to build with the incorrect version of java.
- You are attempting to build with the incorrect version of java.
- You are attempting to build with the incorrect version of java
- You are attempting to build with the incorrect version of java.
- GlassFish安装失败提示错误“This application needs version 1.6 or higher of the Java (TM)2 Runtime Environmen”
- Backtrack5中metasploit安装pg(Metasploit now requires version 0.11 or higher of the 'pg' gem for ...)
- Java SSH工程报错 Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD suppo
- which version developer are you of?
- Developer Versioning: Which Version are You?
- error: libgcrypt version 1.1.94 or higher not found
- HDU 4465 Candy
- Linux下的局域网小工具
- 注册表修改
- Java List 的深拷贝
- C++实现在正方体8个顶点上放数字使得三组相对的面上的4个顶点的和都相等
- Apache CXF requires java version 1.5 or higher. You are currently usin g java version 1.7.
- uva10827 - Maximum sum on a torus
- Android ListView及异步加载图片问题汇总
- Linux tar打包命令
- const和指针的交叉问题
- 数据库链接池的使用,对应于多数据库(用c3p0实现Apache—DBUtils框架)
- 什么是EF, 及 Entity Framework Demo简单搭建环境
- 【axure手机原型】移动应用原型设计新手引导
- atoi()函数