

Remove-Path 'C:\Program Files\Java\jdk1.7.0\bin'Īdd-Path 'C:\Program Files\Java\jdk1.8.0\bin' Remove-Path 'C:\Program Files (x86)\Common Files\Oracle\Java\javapath' Remove-Path 'C:\ProgramData\Oracle\Java\javapath' :: SetEnvironmentVariable ( "JAVA_HOME", "C:\Progra~1\Java\jdk1.8.0", "machine" ) Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run' -Name 'SunJavaUpdateSched'ĭisable-ScheduledTask -TaskPath '\' -TaskName 'JavaUpdateSched' UninstallJava 'Java(TM) SE Development Kit 10.0.1 (64-bit)' Write-Host "Latest Java 10 already installed" -ForegroundColor Green InstallJDKVersion "JDK 1.9 圆4" 9 "" "jdk-9.0.4_windows-圆4_bin.exe" "$env:ProgramFiles\Java\jdk9" "$env:ProgramFiles\Java\jre9" UninstallJava 'Java(TM) SE Development Kit 9.0.1 (64-bit)' Write-Host "Latest Java 9 already installed" -ForegroundColor Green The recommendation is install JDK 64-bit if your Windows is 64-bit operating system installed.Function GetUninstallString ( $productName ) \Java\jre8" NOTE: If your system is of Windows 32-bit operating system then you should install JDK 32 bit and if your system is of Windows 64 bit operating system then you have a choice either you can install JDK 64 bit or JDK 32-bit in your system. Here we are going to download 64-bit JDK 1.8 and install it on the Windows 10 64-bit Operating System. Step-3: Setup System Environment Variables.



How to Download JDK 8 and Install it on Windows 10?.
