![]() ![]() Remove-Item -Path 'hklm:\Software\Wow6432Node\JavaSoft\Java Development Kit\1. Remove-Item -Path 'hklm:\Software\JavaSoft\Java Development Kit\1.6' -Force # Remove Java 6 from Registry (to get rid of Xamarin/Android warning) ![]() 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' Applications are run on a JVM (Java Virtual Machine), which is included in the JRE (Java Runtime Environment) and the JDK. Applications are developed using the JDK (Java Development Kit). UninstallJava 'Java(TM) SE Development Kit 10.0.1 (64-bit)' Red Hat provides an open source implementation of the Java Platform SE (Standard Edition) called OpenJDK. 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 Function GetUninstallString ( $productName ) \Java\jre8" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |