Jump to content

gradlew.bat setupDecompWorkspace: Could not create JVM


Recommended Posts

Posted

Hi, I'm new to Forge Modding and I've been attempting to get it to work for Eclipse.

I have Windows 7 32 bit.

The Forge version I downloaded was forge-1.7.2-10.12.0.1024-src

The errors in CMD are as follows:

 

 

  Quote
:decompile

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

:decompile FAILED

 

FAILURE: Build failed with an exception.

 

* What went wrong:

Execution failed for task ':decompile'.

> Process 'command 'C:\Program Files\Java\jre7\bin\java.exe'' finished with non-

zero exit value 1

 

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug

option to get more log output.

 

BUILD FAILED

 

Exception stack trace is as follows:

 

  Quote
* Exception is:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':decompi

le'.

        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex

ecuteActions(ExecuteActionsTaskExecuter.java:69)

        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex

ecute(ExecuteActionsTaskExecuter.java:46)

        at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExec

uter.execute(PostExecutionAnalysisTaskExecuter.java:35)

        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec

ute(SkipUpToDateTaskExecuter.java:64)

        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut

e(ValidatingTaskExecuter.java:58)

        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu

ter.execute(SkipEmptySourceFilesTaskExecuter.java:42)

        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter

.execute(SkipTaskWithNoActionsExecuter.java:52)

        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut

e(SkipOnlyIfTaskExecuter.java:53)

        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter

.execute(ExecuteAtMostOnceTaskExecuter.java:43)

        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailur

e(AbstractTask.java:289)

        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW

orker.executeTask(AbstractTaskPlanExecutor.java:79)

        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW

orker.processTask(AbstractTaskPlanExecutor.java:63)

        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW

orker.run(AbstractTaskPlanExecutor.java:51)

        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$1.run(DefaultT

askPlanExecutor.java:33)

        at org.gradle.internal.Factories$1.create(Factories.java:22)

        at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def

aultCacheAccess.java:198)

        at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(Def

aultCacheAccess.java:266)

        at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunning

Operation(DefaultPersistentDirectoryStore.java:135)

        at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStat

eCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:95)

        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul

tTaskPlanExecutor.java:31)

        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau

ltTaskGraphExecuter.java:86)

        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask

ExecutionAction.java:29)

        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute

r.java:61)

        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExec

uter.java:23)

        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecu

ter.java:67)

        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx

ecutionAction.java:32)

        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute

r.java:61)

        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute

r.java:54)

        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default

GradleLauncher.java:166)

        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle

Launcher.java:113)

        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun

cher.java:81)

        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon

troller.run(InProcessBuildActionExecuter.java:64)

        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav

a:33)

        at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav

a:24)

        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce

ssBuildActionExecuter.java:35)

        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce

ssBuildActionExecuter.java:26)

        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)

        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav

a:171)

        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.

execute(CommandLineActionFactory.java:201)

        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.

execute(CommandLineActionFactory.java:174)

        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(

CommandLineActionFactory.java:170)

        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(

CommandLineActionFactory.java:139)

        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep

ortingAction.java:33)

        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep

ortingAction.java:22)

        at org.gradle.launcher.Main.doAction(Main.java:46)

        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

        at org.gradle.launcher.Main.main(Main.java:37)

        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots

trap.java:50)

        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j

ava:32)

        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja

va:30)

        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)

        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58)

Caused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Progr

am Files\Java\jre7\bin\java.exe'' finished with non-zero exit value 1

        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNo

rmalExitValue(DefaultExecHandle.java:361)

        at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJava

ExecAction.java:31)

        at org.gradle.api.internal.file.DefaultFileOperations.javaexec(DefaultFi

leOperations.java:171)

        at org.gradle.api.internal.project.AbstractProject.javaexec(AbstractProj

ect.java:871)

        at net.minecraftforge.gradle.tasks.DecompileTask.decompile(DecompileTask

.java:107)

        at net.minecraftforge.gradle.tasks.DecompileTask.doMCPStuff(DecompileTas

k.java:83)

        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)

        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF

actory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:219)

        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF

actory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:212)

        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF

actory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:201)

        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra

ctTask.java:533)

        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra

ctTask.java:516)

        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex

ecuteAction(ExecuteActionsTaskExecuter.java:80)

        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex

ecuteActions(ExecuteActionsTaskExecuter.java:61)

        ... 52 more

 

Is there anything I obviously did wrong?

Posted

run with --debug --refresh-dependnencies

And pastebin the gradle.log file in the .gradle folder

Also how much ram does your computer have?

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

From your pastbin:

  Quote

1754.13:31:29.517 [DEBUG] [org.gradle.api.Project] Error occurred during initialization of VM

1755.Could not reserve enough space for object heap

1756.

1757.13:31:29.520 [ERROR] [system.err] Error: Could not create the Java Virtual Machine.

1758.13:31:29.547 [ERROR] [system.err] Error: A fatal exception has occurred. Program will exit.

 

It seems that heap space is a problem for quite a few people, as far as I can see. I think there was another topic or two where this specific issue is discussed and possibly resolved. I think it had to do with giving gradle more heap space - On a 32-bit machine, I dunno how much is possible - for the decompile.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I can't figure out if you're looking for help trying to steal someone elses work, or cheat at the game....
    • Title: Why Is It So Hard to Rename and Restructure Mods Like Xray or AntiXray? 🤔 Post text: Hey everyone! I’ve been digging into Minecraft modding for a while and have one big question that I can’t figure out on my own. Maybe someone with more experience could help or give me some advice. Here’s the issue: When I take a “normal” Minecraft mod — for example, one that just adds some blocks or new items — I can easily change its structure, package names, or even rebrand it entirely. It’s straightforward. But as soon as I try this with cheat-type mods like XrayMod or AntiXray, everything falls apart. Even if I just rename the classes, refactor the packages, or hide its identity somehow, the mod either breaks or stops working properly. XrayMod in particular is proving to be a nightmare to modify without losing its core function. So my question is — why is this so much harder with cheat mods like Xray? Is there something fundamentally different about how they’re coded, loaded, or protected that prevents simple renaming or restructuring? And if so, how can I actually learn to understand someone else’s cheat mod enough to safely refactor it without breaking the core features? I’ve already been spending over two months trying to figure this out and haven’t gotten anywhere. It feels like there must be some trick or knowledge I’m missing. Would really appreciate any thoughts, tips, or references — maybe there are guides or techniques for understanding cheat-mod internals? Or if you’ve successfully “disguised” a cheat mod like Xray before, I’d love to hear how you did it. Thanks in advance for any help or discussion. ✌️
    • just started making cinamatic contect check it out on my channel or check out my facebook page    Humbug City Minecraft Youtube https://www.youtube.com/watch?v=v2N6OveKwno https://www.facebook.com/profile.php?id=61575866982337  
    • Where did you get the schematic? Source/Link? And do use an own modpack or a pre-configured from curseforge? If yes, which one On a later time, I can make some tests on my own - but I need the schematic and the modpack name
  • Topics

×
×
  • Create New...

Important Information

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