1、下载java17以上的版本:
https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html(注意:下载压缩包版本,windows64位的不建议下载jbk.17.0.6版本,因为很慢)
2、将压缩包解压后将文件放到stata17安装的路径下:C:\Program Files\Stata17\utilities\java\windows-x64
3、在stata中输入命令
set java_home "C:\Program Files\Stata17\utilities\java\windows-x64\jdk-17.0.6"
4、指令运行结束后,关闭stata,再打开就好了
方案来源:https://www.jianshu.com/p/95fe650fbc30
(解决方案初始来源:https://www.statalist.org/forums/forum/general-stata-discussion/general/1649043-java-installation-not-found/page2)


雷达卡






京公网安备 11010802022788号







