Lỗi you do not have java install new java năm 2024

An alternative would be to download another version of JDK from "Java Archive Downloads - Java SE 17 (oracle.com)". Extract the .zip file and copy paste the contents in the Stata 17 installation folder. You will then need to set Stata for using this version of jdk by

Code:

set java_home "Path to the extracted folder in the Stata 17 installation folder"

The

Code:

ssc install chi2power

command should work after this.

Comment

  • Join Date: Dec 2014
  • Posts: 10150

    I would not recommend installing an alternative version of Java unless you want to maintain your Java installation yourself, rather than have Stata take care of it as part of its update procedures. And the version of Java reported by java query suggests that you have not updated your installation of Stata 17 since 14 June 2021 which was when Stata made 11.0.11 the current version; you can see that my version is at 11.0.13, which was released in the 11 November 2021 update to Stata. So if the manual initialization suggested above doesn't resolve the problem, I would advise that the next step is to and perhaps the update process will take care of your Java problem. If not, my next advice would be to contact Stata Technical Services at https://www.stata.com/support/tech-support/ and seek their advice. You're entitled to it as part of your Stata license.

    Comment Join Date: Feb 2022 Posts: 13


    . set java_home "C:\Users\ramfa\Desktop\jdk-17_windows-x64_bin\jdk-17.0.2\bin\java.exe" C:\Users\ramfa\Desktop\jdk-17_windows-x64_bin\jdk-17.0.2\bin\java.exe is not a valid path. r(601);

    Comment Join Date: Feb 2022 Posts: 13


    when I use about command I can see that Revision 16 Dec 2021

    Comment Join Date: Feb 2022 Posts: 13


    I have updated Stata 17. It is now Revision 17 Jan 2022. However, I still receive . ssc install chi2power Java installation not found r(5004);

    Comment Join Date: Feb 2022 Posts: 13


    Please have a look at the attached file. Please note that I use Windows 11

    Comment

  • StataCorp Employee
  • Join Date: Jun 2014
  • Posts: 319

    As the iqt.pdf suggested, your Stata MP executable is out of date. Launch StataMP, then type and follow the instructions. Make sure after the update, in Stata, [/CODE] query compilenumber [/CODE] reports "Compile number 170112". report back if any error during update.


  • 1 like

    Comment Join Date: Feb 2022 Posts: 13


    I have done it. The report is attached.

    Comment

  • StataCorp Employee
  • Join Date: Jun 2014
  • Posts: 319

    Now the installation is good. Do you still have problem when try Code:

    ssc install chi2power If the problem persists, please contact us at

    Comment Join Date: Feb 2022 Posts: 13


    I still receive the same message Java installation not found r(5004); However, I would like to mention that when I click on Stata icon to open it, I receive a security alert from McAfee Endpoint Security. I have add Stata in the Exclusions (setting in McAfee). Could McAfee affect Stata?