xinli/xinli-App/check-jdk.bat
2025-11-23 10:19:32 +08:00

25 lines
370 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ========================================
echo 检查JDK版本
echo ========================================
echo.
echo 当前Java版本
java -version
echo.
echo JAVA_HOME环境变量
if defined JAVA_HOME (
echo %JAVA_HOME%
) else (
echo JAVA_HOME未设置
)
echo.
echo 检查Gradle使用的Java版本
call gradlew.bat -v
echo.
pause