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:

 

 

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

 

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

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

    • *** buffer overflow detected ***: terminated /usr/bin/forge-1.12.2d: line 162: 15787 Aborted                 (core dumped) ${SUDO_CMD} screen -S "${SESSION_NAME}" -Q select . > /dev/null Starting server...There are several suitable screens on:     14630.forge-1.12.2    (Detached)     15796.forge-1.12.2    (Detached) Use -S to specify a session How do i fix this issue?
    • Oh I forgot to update the title. I figured out the issue and I'm rather embarrassed to say that it was a file path issue. The game already knew I was accessing the achievements so I wasn't suppose to include advancements in the file path. Minecraft file paths have always confused me a little bit... ResourceLocation advancementId = new ResourceLocation( TheDeadRise.MODID,"adventure/spawntrigger");
    • Can someone help my with this? My forge server won't open and I'm not that good with this stuff. It gave me this error message:   C:\Users\apbeu\Desktop\Forge server>java -Xmx4G -Xms1G -jar server.jar nogui 2024-12-11 18:21:01,054 main WARN Advanced terminal features are not available in this environment [18:21:01] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 36.2.34, --fml.mcpVersion, 20210115.111550, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, nogui] [18:21:01] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 21.0.4 by Oracle Corporation Exception in thread "main" java.lang.IllegalAccessError: class cpw.mods.modlauncher.SecureJarHandler (in unnamed module @0x402e37bc) cannot access class sun.security.util.ManifestEntryVerifier (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x402e37bc         at cpw.mods.modlauncher.SecureJarHandler.lambda$static$1(SecureJarHandler.java:45)         at cpw.mods.modlauncher.api.LamdbaExceptionUtils.uncheck(LamdbaExceptionUtils.java:95)         at cpw.mods.modlauncher.SecureJarHandler.<clinit>(SecureJarHandler.java:45)         at cpw.mods.modlauncher.Launcher.lambda$new$6(Launcher.java:55)         at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)         at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:52)         at cpw.mods.modlauncher.api.TypesafeMap.computeIfAbsent(TypesafeMap.java:47)         at cpw.mods.modlauncher.Environment.computePropertyIfAbsent(Environment.java:62)         at cpw.mods.modlauncher.Launcher.<init>(Launcher.java:55)         at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)         at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)         at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)         at net.minecraftforge.server.ServerMain.main(ServerMain.java:57) C:\Users\apbeu\Desktop\Forge server>pause
    • Here is the url for the crash report if anyone can help me, please. https://mclo.gs/KGn5LWy  
    • Every single time I try and open my modpack it crashes before the game fully opens and I don't know what is wrong. I open the crash logs but I don't understand what any of it means. What do I do?
  • Topics

×
×
  • Create New...

Important Information

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