Skip to content

Commit

Permalink
added jdk 8 instructions for macOS
Browse files Browse the repository at this point in the history
added necessary commands and download links
  • Loading branch information
GameCenterJerry committed Oct 22, 2020
1 parent 5a5d119 commit 7032efc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,27 @@ On Mac OSX and Linux, use `./gradlew` instead of `gradlew`.

If you have errors with a package missing please make sure you have setup your environment, and are using Oracle JDK 8.

To check which java you are using do
`java -version` in a command prompt or terminal.
If you are using Oracle JDK 8+ it will not work because the Java distributions above JDK 8 using may not have the needed javax classes.

Oracle JDK 8 download: https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
#### macOS guide
In order to get JDK 8, run the following command:
`% /usr/libexec/java_home -V`
If you see something like

`% 1.8.0_202, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home`

in the list then you've got JDK 8 installed.
In order to get JDK 8 running in the **current terminal window** you will have to run this command:

`% export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)`

You will have to compile the file in the same terminal window.

#### Windows 10 guide (currently working on it)

Setting up the Environment:

```
Expand Down

0 comments on commit 7032efc

Please sign in to comment.