出现这个本人遇到过两种情况:

1.你的项目和你工作环境本身的jdk版本不同导致的
解决方案:Java编译时错误:A JNI error has occurred, please check your installation and try again
Java编译时错误:A JNI error has occurred, please check your installation and try again
Java编译时错误:A JNI error has occurred, please check your installation and try again
Java编译时错误:A JNI error has occurred, please check your installation and try again

2.你的工作环境中有两种jdk的版本
①命令行中通过“java -version”和“javac -version”查询SDK版本

②把不需要的版本删除掉(在控制面板卸载)

③调整环境变量为留下的JDK相关信息

④重新编译查看是否仍有错误

相关文章:

  • 2022-12-23
  • 2021-07-01
  • 2021-11-19
  • 2021-05-11
  • 2022-01-04
猜你喜欢
  • 2021-12-11
  • 2021-10-20
  • 2021-08-13
相关资源
相似解决方案