I've seen similar questions to this, but none of the methods worked while some of them weren't applicable. I'm running Gradle 3.0 with JDK 1.8 provided by IntelliJ. When I go to the directory of my mod folder on cmd and run gradlew getIntellijRuns
it prompts me with this error:
ERROR: JAVA_HOME is set to an invalid directory: C:Program FilesJavajdk-15.0.1jdk-15.0.1
Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
I have tried uninstalling every other jdk versions and then setting the path on this version of jdk, yet I still get prompted with this error. I don't see why it would appear as I'm using the jdk that IntelliJ provides to begin with. As I can't set up my workspace correctly, I cannot import essential libraries such as net.minecraftforge.*
I've also set my project to the .main
version, tried to clean the cache to run setupDecompWorkspace
on IntelliJ and I still can't get it right. I'll provide some images for clarity.
Run/Debug Configurations
JAVA_HOME Path
Import line
CMD prompt
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…