Pokechu22/WorldDownloader

Downloaded gradlew.bat before adding gradle.properties

Hhhh-Pain opened this issue · 10 comments

In reference to : #240 (comment)

I have no idea what I'm doing and couldn't follow along bc the chat was moved to a different platform.

I have pasted the code on a notepad in gradle.notepad as well as downloaded the jdk. just wondering what's next

You don't need to download gradlew.bat; it already exists in the repository.

You do need to create a gradle.properties file in the right folder (.gradle in your Windows user folder; I'm pretty sure this is a hidden folder. You'll also want to enable always show file extensions; it just makes everything easier.). Unfortunately it's been a while since I've done the setup myself and I'm not sure how much I can help anymore :/

Sets default memory used for gradle commands. Can be overridden by user or command line properties.

This is required to provide enough memory for the Minecraft decompilation process.

org.gradle.jvmargs=-Xmx3G

org.gradle.java.home=C:\Program Files\Eclipse Adoptium\jdk-8.0.312.7-hotspot

Disable the daemon to prevent "java.lang.IllegalStateException: ProjectScopeServices has been closed." during compile time

org.gradle.daemon=false

?

Yes, something like that should work.

can you go through the process of downloading gradlew and then WorldDownloader? it is still not working for me...

If you download the source code for WDL, gradlew.bat already exists in it. You don't need to manually download it.

the cmand "gradlew setupDecompWorkspace build" doesn't work...

C:\Users\carte>gradlew setupDecompWorkspace build
'gradlew' is not recognized as an internal or external command,
operable program or batch file.

You need to enter the directory where you downloaded the source code (e.g. cd WorldDownloader).

can't find path specified

C:\Users\carte>cd WorldDownloader
The system cannot find the path specified.

C:\Users\carte\Downloads\MinceCraft\WorldDownloader-4>gradlew setupdecompWorkspace build

FAILURE: Build failed with an exception.

  • What went wrong:
    Value 'C:\Program Files\Eclipse Adoptium\jdk-8.0.312.7-hotspot' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org