Closed sunyuyangg123 closed 7 years ago
Hi @sunyuyangg123
java7
doesn't seem to be a full path like C:/Program Files (x86)/Java/jdk1.7.0
? Also Oracle doesn't give support on Windows XP, but you're free to install it anyway. So this may be the easier solution.
yes, java7 is the full path.
this is the gradle log:
^
符号: 类 Optional
位置: 程序包 java.util
E:\workspace\O2Xfs\o2xfs-xfs3\src\o2xfs-xfs3\java\at\o2xfs\xfs\cdm\v3_00\ItemPosition3.java:78: 错误: 找不到符号
public Optional
Compilation failed; see the compiler error output for details.
Class Optional is the java 8 Class so I can not build in java 7 .
Thank you very much for your reply! I have installed Java8 on XP now.It would be better to use Java7!
The java.util.Optional
class was added in Java 8, since you compile with Java 7 it will obviously fail. You have to fork and rewrite some code to be compatible with Java 7. See Issue #33 for an example on how Optional
could be written in Java 7.
I want to build with java 7 as the client system is XP, but I can not build when I set "org.gradle.java.home = java7". What should I do ?