Skip to content

Commit

Permalink
README.md: tweak the instructions for setting JAVA_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Mar 1, 2024
1 parent 2dde0ef commit 03fdef5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,12 @@ Open the project's properties in the IDE (JME SDK or NetBeans):
1. Install a [Java Development Kit (JDK)][adoptium],
if you don't already have one.
2. Point the `JAVA_HOME` environment variable to your JDK installation:
(The path might be something like "C:\Program Files\Java\jre1.8.0_301"
or "/usr/lib/jvm/java-8-openjdk-amd64/" or
"/Library/Java/JavaVirtualMachines/liberica-jdk-17-full.jdk/Contents/Home" .)
(In other words, set it to the path of a directory/folder
containing a "bin" that contains a Java executable.
That path might look something like
"C:\Program Files\Eclipse Adoptium\jdk-17.0.3.7-hotspot"
or "/usr/lib/jvm/java-17-openjdk-amd64/" or
"/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home" .)
+ using Bash or Zsh: `export JAVA_HOME="` *path to installation* `"`
+ using [Fish]: `set -g JAVA_HOME "` *path to installation* `"`
+ using Windows Command Prompt: `set JAVA_HOME="` *path to installation* `"`
Expand Down

0 comments on commit 03fdef5

Please sign in to comment.