Jump to content

[1.8.9] Could not find or load main class GRADLE_OPTS=-Xmx3072m


Recommended Posts

Posted

After much frustration copying my Mod's source files to a 1.8.9 forge version, making an environment variable called "GRADLE_OPTS" which didn't help because I needed to allocate 3 gigs of RAM to the gradle setup process, I came up with an issue. Upon completion I copied the src folder to the new forgesource workspace, resolved the errors,  and tried to run "gradlew build". When I did it returned this error:

 

Error: Could not find or load main class GRADLE_OPTS=-Xmx3072m

 

I feel this is related to the tinkering I did before, as 3 gigs of ram was the amount I attempted to allocate. Yet I have deleted the environment variable and the gradle properties file I created and yet I still get this issue.

 

Anybody know how to fix this?

 

Thanks in advance.

Posted

That's not how you allocate more memory.

 

Use the

org.gradle.jvmargs

property in the

~/.gradle/gradle.properties

file as described here

I understand that now, but that properties file didn't work for me, so I had to add some "-Diag" or something extension and it worked.

 

The issue is the error I'm getting trying to turn my mod into a jar file.

Posted

Run

gradlew build

with the

--stacktrace

option and post the entire log.

Nevermind, I had to delete the GRADLE_OPTS variable and it worked now. Thanks tho.

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.