[英]JPF build/compile error on Windows10/Java jdk 12
I am trying to build Jpf source code on my Windows 10 machine. 我正在尝试在我的Windows 10机器上构建Jpf源代码。 I have followed the instructions and cloned the master branch of jpf-core.
我按照说明克隆了jpf-core的主分支。 I have installed the jdk 12 (latest version).
我安装了jdk 12(最新版本)。 Now I am running the gradlew.bat file given in the source but it gives me following error:
现在我正在运行源代码中给出的gradlew.bat文件,但它给出了以下错误:
============================= =============================
> Task :compileJava
E:\Project\jpf-core\src\main\gov\nasa\jpf\vm\HashedAllocationContext.java:21: error: cannot find symbol
import sun.misc.SharedSecrets;
^
symbol: class SharedSecrets
location: package sun.misc
E:\MS\CS5615 Intro to Program Analysis\Project\jpf-core\src\main\gov\nasa\jpf\vm\HashedAllocationContext.java:22: error: cannot find symbol
import sun.misc.JavaLangAccess;
^
symbol: class JavaLangAccess
location: package sun.misc
E:\Project\jpf-core\src\main\gov\nasa\jpf\vm\HashedAllocationContext.java:85: error: cannot find symbol
static final JavaLangAccess JLA = SharedSecrets.getJavaLangAccess();
^
symbol: class JavaLangAccess
location: class HashedAllocationContext
E:\Project\jpf-core\src\main\gov\nasa\jpf\vm\HashedAllocationContext.java:85: error: cannot find symbol
static final JavaLangAccess JLA = SharedSecrets.getJavaLangAccess();
^
symbol: variable SharedSecrets
location: class HashedAllocationContext
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
============================= =============================
I am not being able to build it. 我无法建立它。 There's something to be done about sun.misc libraries that I am not being able to understand.
有关sun.misc库的一些事情我无法理解。 I am new to java and I have to run jpf on some examples.
我是java新手,我必须在一些例子上运行jpf。 Any help would be appreciated.
任何帮助,将不胜感激。
Okay so I have installed jdk 8u212 for windows and reset the java_home environment variable to new jdk and JPF compiled. 好吧所以我已经为windows安装了jdk 8u212并将java_home环境变量重置为新的jdk和JPF编译。 (but with some warnings)
(但有一些警告)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.