So I'm following this walkthrough here to setup Eclipse to mod Minecraft. When I run gradlew setupDecompWorkspace --refresh-dependencies
it will run until it reaches the :recompileMC
stage and fail with an error stating that my java_home classpath is set to the 1.8 JRE. However I've already changed it to point to the 13.0 JDK. Clearly there is some place that I'm missing that it's reading from. I even tried the solution in this stackoverflow question and I still get the same error. Please see the image below.
EDIT: Alright, well simply restarting my computer resolved that error but now I'm cursed with a new one. Could not determine java version from 13.0.1
. I'm currently researching about this error and will update if I can't resolve it myself
EDIT2: So it turns out the previous error is caused by using a version of gradle incompatible with newer versions of the JDK. I tried downgrading to JDK10, something that was supported but received the same error. I tried upgrading gradle but the newer versions remove the setupDecompWorkspace command which seems to mean I cannot move forward on setting up a programming environment for MC 1.12. Funnily enough, gradle works fine when pointing to JRE 1.8 but cannot decompile because it's not a JDK, but can't "find a version" for the JDK and cannot run at all.