Solution to Java installation not found problem encountered after Stata17 installation

When using Stata17 for the first time, you may encounter this problem. When executing the ssc install aaplot command, an error will be reported: Java installation not found . This is because the Java environment is not specified. We only need to specify Java in stata The environment variables can be resolved.

1. Download the version above java17:
https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html

(Note: download the compressed package version, it is not recommended to download the jbk.17.0.6 version for windows 64 bits, because it is very slow)

2. After decompressing the compressed package, put the file in the stata17 installation path:

C:\Program Files\Stata17\utilities\java\windows-x64

3. Enter the command in stata

set java_home "C:\Program Files\Stata17\utilities\java\windows-x64\jdk-17.0.6"


4. After the command runs, you need to close stata and then reopen it.

Guess you like

Origin blog.csdn.net/qq_19309473/article/details/130157981