When trying to upgrade AAI to 24.3 from 24.0 by using the upgrade.bat script, the following errors occur when executing the script:
C:\Windows\system32>cd C:\Downloads\AAIUpgrade
C:\\Downloads\AAIUpgrade>upgrade.batThe syntax of the command is incorrect.C:\\Downloads\AAIUpgrade>upgrade.bat17 was unexpected at this time.
JAVA_HOME is already pointing to openjdk 17 as instructed in the documentation.
Below is your environment setup:
JAVA_HOME=C:\jdk-17.0.16+8\bin
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\Salt Project\Salt;C:\jdk-17.0.16+8\bin
java -version
openjdk version "17.0.16" 2025-07-15 LTS
OpenJDK Runtime Environment Microsoft-11926163 (build 17.0.16+8-LTS)
systeminfo
OS Name: Microsoft Windows Server 2022 Datacenter
OS Version: 10.0.20348 N/A Build 20348
AAI 24.X
The environment variable is incorrect
The problem is that the JAVA_HOME variable is not properly set.
Current value:
JAVA_HOME=C:\jdk-17.0.16+8\bin
Expected value:
JAVA_HOME=C:\jdk-17.0.16+8\
Please correct your environment setup.