Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloaded gradlew.bat before adding gradle.properties #274

Open
Hhhh-Pain opened this issue Mar 18, 2023 · 10 comments
Open

Downloaded gradlew.bat before adding gradle.properties #274

Hhhh-Pain opened this issue Mar 18, 2023 · 10 comments

Comments

@Hhhh-Pain
Copy link

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

@Pokechu22
Copy link
Owner

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 :/

@Hhhh-Pain
Copy link
Author

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

?

@Pokechu22
Copy link
Owner

Pokechu22 commented Mar 19, 2023

Yes, something like that should work.

@Hhhh-Pain
Copy link
Author

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

@Pokechu22
Copy link
Owner

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

@Hhhh-Pain
Copy link
Author

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.

@Pokechu22
Copy link
Owner

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

@Hhhh-Pain
Copy link
Author

can't find path specified

@Hhhh-Pain
Copy link
Author

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

@Hhhh-Pain
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants