简体   繁体   English

Windows10 / Java jdk 12上的JPF构建/编译错误

[英]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.

相关问题 ANTLR / java / SDK 生成-编译-执行序列在 Windows10 命令 window 上失败 - ANTLR / java / SDK generate-compile-execute sequence fails on Windows10 command window 在Java进程上调用Windows10计算器? - Calling Windows10 Calculator on a Java Process? 无法运行jpf命令:JPF异常,终止:读取类java.lang.reflect.AnnotatedElement时出错 - Not able to run jpf command :JPF exception, terminating: error reading class java.lang.reflect.AnnotatedElement Java JDK 18 未安装 Windows 10 - Java JDK 18 is not installing windows 10 没有管理员权限在Windows 10和Cygwin上安装Java JDK - Installing the Java JDK on Windows 10 and Cygwin without admin permissions java jdk 安装错误,在 windows 上,32 位 - java jdk installation error, on windows, 32 bits 无法在Windows10上运行作为服务运行的Java应用程序的Continuous Flight Recorder - Unable to run Continuous Flight Recorder for Java app running as a service on Windows10 64位Windows10中每个Java进程的最大内存量? - Max amount of memory per java process in 64bit Windows10? 在Windows10上通过Java Runtime Exec在Cygwin bash上调用ShellScript - Call a ShellScript on Cygwin bash via Java Runtime Exec on Windows10 在 windows10 中运行 jar 文件出现问题 - Problem with running jar file in windows10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM