Created
November 6, 2017 00:40
-
-
Save asmagin/1db9865179a240ce41cba3cf7fb8ae94 to your computer and use it in GitHub Desktop.
Install Sitecore 9 - Prerequisites - Part 10 - Install Solr 6.6.2 - Set JAVA_HOME & Path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set JAVA_HOME and Path variables | |
$JAVA_HOME = "C:\Program Files\Java\jre1.8.0_151" | |
$Path = "${env:Path};${JAVA_HOME}\bin" | |
[Environment]::SetEnvironmentVariable("JAVA_HOME", $JAVA_HOME, "Machine") | |
[Environment]::SetEnvironmentVariable("Path", $Path, "Machine") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment