Hexeption / MCP-Reborn

MCP-Reborn is an MCP (Mod Coder Pack) for Minecraft for making modded clients and researching its code. (1.13-1.20.1)
Other
940 stars 122 forks source link

Invalid maximum heap size: -Xmx4G #309

Open KATu2011 opened 6 months ago

KATu2011 commented 6 months ago

At the decompile task, I alway get this error. You can reduce RAM usage when the decompile task is being started because I only have 2GB of RAM

Info: OS: Windows 10 1709 32-bit IDE: Intellij IDEA 2018.3.6 (i used this old version because the lastest intellij need 64-bit system) RAM: 2GB CPU: Intel(R) Celeron(R) N2840@ 2.16GHz

Here the log:

Task :mcp:setupMCP Setting up MCP environment Initializing steps Executing steps Running 'downloadManifest' Running 'downloadJson' Running 'downloadClient' Running 'downloadServer' Running 'stripClient' Running 'stripServer' Running 'merge' Running 'rename' Running 'mcinject' Running 'listLibraries' Running 'decompile' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Invalid maximum heap size: -Xmx4G The specified size exceeds the maximum representable size.

Task :mcp:setupMCP FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 19s 3 actionable tasks: 2 executed, 1 up-to-date

Tenneb22 commented 4 months ago

Use a newer JDK Version (Like JDK 17) if you are able to. I looked and saw that Adoptium has 32-bit versions up to Java 17. Maybe that will help. https://adoptium.net/temurin/releases/?os=windows&arch=x86&version=17&package=jdk (That should be the right version)