From 50adc8807b3d340853db4ca931e8bb61600948a0 Mon Sep 17 00:00:00 2001 From: FriwiDev Date: Tue, 26 Oct 2021 19:47:42 +0200 Subject: [PATCH] set java home for 32 bit --- scripts/run_windows.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run_windows.bat b/scripts/run_windows.bat index e42a952..2b62686 100644 --- a/scripts/run_windows.bat +++ b/scripts/run_windows.bat @@ -17,6 +17,9 @@ cd jcef :: Prepare build dir mkdir jcef_build && cd jcef_build +:: Setup java home for 32 bit +if "%TARGETARCH"=="386" (set JAVA_HOME="C:\Program Files (x86)\Java\jdk1.8.0_211") + :: Load vcvars for 32 or 64-bit builds if "%TARGETARCH%"=="386" (call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars32.bat") ^ else (call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat")