From 7032efcc05fe2280f57208129af4d37cef9ec68c Mon Sep 17 00:00:00 2001 From: GameCenterJerry <61768561+GameCenterJerry@users.noreply.github.com> Date: Thu, 22 Oct 2020 13:09:56 +1100 Subject: [PATCH 1/5] added jdk 8 instructions for macOS added necessary commands and download links --- SETUP.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/SETUP.md b/SETUP.md index ff16acbb..ad1f3316 100644 --- a/SETUP.md +++ b/SETUP.md @@ -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: ``` From 07704b3ec7876cbf2704f44f65d9c4cac2699b71 Mon Sep 17 00:00:00 2001 From: GameCenterJerry <61768561+GameCenterJerry@users.noreply.github.com> Date: Thu, 22 Oct 2020 13:14:53 +1100 Subject: [PATCH 2/5] Update SETUP.md --- SETUP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SETUP.md b/SETUP.md index ad1f3316..b23798a3 100644 --- a/SETUP.md +++ b/SETUP.md @@ -53,7 +53,7 @@ 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 +Open JDK 8 download: https://openjdk.java.net/install/ #### macOS guide In order to get JDK 8, run the following command: `% /usr/libexec/java_home -V` From cafb810a1f54cb30e7ca0e097824cf21bee7a23d Mon Sep 17 00:00:00 2001 From: GameCenterJerry <61768561+GameCenterJerry@users.noreply.github.com> Date: Thu, 22 Oct 2020 13:28:18 +1100 Subject: [PATCH 3/5] Update SETUP.md --- SETUP.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/SETUP.md b/SETUP.md index b23798a3..5e41432b 100644 --- a/SETUP.md +++ b/SETUP.md @@ -51,23 +51,24 @@ If you have errors with a package missing please make sure you have setup your e 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. +If you are using OpenJDK 8+ it will not work because the Java distributions above JDK 8 using may not have the needed javax classes. Open JDK 8 download: https://openjdk.java.net/install/ #### macOS guide -In order to get JDK 8, run the following command: +In order to get JDK 8, Try running the following command: `% /usr/libexec/java_home -V` +If it doesn't work try this guide: https://stackoverflow.com/questions/46513639/how-to-downgrade-java-from-9-to-8-on-a-macos-eclipse-is-not-running-with-java-9 + If you see something like -`% 1.8.0_202, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home` +`% 1.8.0_VERSION, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_VERSION.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. - +To add OpenJDK 8 to your PATH try this guide: http://www.sajeconsultants.com/how-to-set-java_home-on-mac-os-x/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-set-java_home-on-mac-os-x. If you're using bash change the .bachrc and if you're using zsh change the .zshrc #### Windows 10 guide (currently working on it) Setting up the Environment: From 0bfd0bca0cd26e11dd45871480be9ead42a9ca01 Mon Sep 17 00:00:00 2001 From: GameCenterJerry <61768561+GameCenterJerry@users.noreply.github.com> Date: Thu, 22 Oct 2020 13:47:50 +1100 Subject: [PATCH 4/5] Update SETUP.md --- SETUP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SETUP.md b/SETUP.md index 5e41432b..c09ad368 100644 --- a/SETUP.md +++ b/SETUP.md @@ -68,7 +68,7 @@ In order to get JDK 8 running in the **current terminal window** you will have t `% export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)` -To add OpenJDK 8 to your PATH try this guide: http://www.sajeconsultants.com/how-to-set-java_home-on-mac-os-x/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-set-java_home-on-mac-os-x. If you're using bash change the .bachrc and if you're using zsh change the .zshrc +To add OpenJDK 8 to your PATH add the export line to the end of your `.zshrc / .bashrc` if you want it to apply to each new terminal. If you're using bash change the .bachrc and if you're using zsh change the .zshrc #### Windows 10 guide (currently working on it) Setting up the Environment: From 14b75973b03735338d0644d07568423e5748feb8 Mon Sep 17 00:00:00 2001 From: GameCenterJerry <61768561+GameCenterJerry@users.noreply.github.com> Date: Thu, 22 Oct 2020 15:02:17 +1100 Subject: [PATCH 5/5] Update SETUP.md --- SETUP.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SETUP.md b/SETUP.md index c09ad368..9d581aee 100644 --- a/SETUP.md +++ b/SETUP.md @@ -51,7 +51,7 @@ If you have errors with a package missing please make sure you have setup your e To check which java you are using do `java -version` in a command prompt or terminal. -If you are using OpenJDK 8+ it will not work because the Java distributions above JDK 8 using may not have the needed javax classes. +If you are using anything above OpenJDK 8, it might not work because the Java distributions above JDK 8 using may not have the needed javax classes. Open JDK 8 download: https://openjdk.java.net/install/ #### macOS guide @@ -69,7 +69,6 @@ In order to get JDK 8 running in the **current terminal window** you will have t `% export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)` To add OpenJDK 8 to your PATH add the export line to the end of your `.zshrc / .bashrc` if you want it to apply to each new terminal. If you're using bash change the .bachrc and if you're using zsh change the .zshrc -#### Windows 10 guide (currently working on it) Setting up the Environment: