RUN Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11. Step 6/15 : RUN Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11.msi", 'ADDLOCAL="FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome"', 'INSTALLDIR="C:\Program Files\Java\jdk-11\"', /quiet, /norestart -Verb RunAsįROM /windows:1903 AS jdk11 When running the command in Docker build, it still hangs forever. ![]() Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11.msi", 'ADDLOCAL="FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome"', 'INSTALLDIR="C:\Program Files\Java\jdk-11\"', /quiet, /norestart -Verb RunAs I am able to run the PowerShell command manuallyĭocker run -it -v C:\Temp:C:\Temp:rw -w C:\Temp /windows:1903 powershell It works when running it manually in PowerShell, but hangs still with docker build. The install process just hangs there forever. Trying with silent install: Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11.msi", "ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome", "INSTALLDIR='C:\Program Files\Java'", /quiet Need silent install because I am doing it when building my Windows JDK11 docker image.įirst download the AdoptOpenJDK OpenJDK 11 Invoke-WebRequest -OutFile C:\Temp\openjdk11.msi ![]() The OpenJDK MSI downloaded from AdoptOpenJDK. The output should look something like this: openjdk. Once the installation is complete, you can verify it by checking the Java version: java -version. I am trying to silent install an MSI in PowerShell. Run the following commands as a user with sudo privileges or root to update the packages index and install the OpenJDK 11 JDK package: sudo apt update sudo apt install openjdk-11-jdk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |