Jump to content

IntelliJ IDEA; Error: Could not create the Java Virtual Machine.


ShadowProgrammer

Recommended Posts

So, I'm new to modding Minecraft, but not coding in Java. I downloaded the forge mdk 1.18.2-40.1.0. I ran genIntellliJRuns, and it builds just fine, but when I run runClient, it gives me this error:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: -p

I am using:

  • jdk-8.0.332.9 from Eclipse Adoptium
  • Windows 11
  • IntelliJ Community Version 2021.2, 64 Bit

Please help.

Link to comment
Share on other sites

Okay, so I installed Java 17 (jdk 17.0.3_7), and now I get two different error messages (FOLDER is just a stand-in for my directory):

Caused by: java.io.IOException: Invalid paths argument, contained no existing paths: [D:\FOLDER\ModTest\build\resources\main, D:\FOLDER\ModTest\build\classes\java\main]

AND

Execution failed for task ':runClient'.
> Process 'command 'C:\Users\USER\.gradle\jdks\adoptium-17-x64-hotspot-windows\bin\java.exe'' finished with non-zero exit value 1

What's happening?

EDIT: I moved this to a different forum post.

Edited by ShadowProgrammer
I moved this to a different forum post
Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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