Skip to content

Instantly share code, notes, and snippets.

@asmagin
Created November 6, 2017 00:40
Show Gist options
  • Save asmagin/1db9865179a240ce41cba3cf7fb8ae94 to your computer and use it in GitHub Desktop.
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
# 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