Posted March 11, 20205 yr I just uninstalled my java of old version and installed a new version. F:\Minecraft\forge>gradlew.bat setupDecompWorkspace ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_241\bin\java.exe Please set the JAVA_HOME variable in your environment to match the location of your Java installation. Help me,please.
March 11, 20205 yr Author I've updated my variable value of "JAVA_HOME" in "Environment variables",but it still doesn't work.
March 11, 20205 yr Author Oh I restarted my computer and solved this problem.Thank you all the same,@diesieben07
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.