Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Failed to create the Java Virtual Machine(Had Eclipse installed but updated my JVM to AdoptOpenJDK 11 (HotSpot) and now I get this error.)
Failed to create the Java Virtual Machine [message #1819605] Fri, 17 January 2020 22:40 Go to next message
Caleb Engel is currently offline Caleb EngelFriend
Messages: 3
Registered: January 2020
Junior Member
Had Eclipse installed but updated my JVM to AdoptOpenJDK 11 (HotSpot) and now I get this error "Failed to create the Java Virtual Machine". I've read the forum but can't seem to find a remedy for this error. I'm on a Mac running macOS Catalina Version 10.15.2 and I tried deleting and redownloading Eclipse 64 bit.

Thanks,

\C
Re: Failed to create the Java Virtual Machine [message #1819608 is a reply to message #1819605] Sat, 18 January 2020 03:36 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3710
Registered: July 2009
Senior Member

A screenshot of the dialog might be helpful.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Failed to create the Java Virtual Machine [message #1819610 is a reply to message #1819608] Sat, 18 January 2020 07:22 Go to previous messageGo to next message
Caleb Engel is currently offline Caleb EngelFriend
Messages: 3
Registered: January 2020
Junior Member
Thanks I'm attaching a screenshot of the message along with the terminal shell running the /usr/libexec/java_home --verbose command listed in wiki article found in the Eclipse forums https://www.eclipse.org/forums/index.php/t/198527/.

Re: Failed to create the Java Virtual Machine [message #1819701 is a reply to message #1819610] Tue, 21 January 2020 16:47 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3710
Registered: July 2009
Senior Member

OpenJ9 isn't Hotspot. I doubt that's the problem, but it's probably something to correct just to rule it out.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Failed to create the Java Virtual Machine [message #1820589 is a reply to message #1819701] Thu, 23 January 2020 14:30 Go to previous messageGo to next message
Caleb Engel is currently offline Caleb EngelFriend
Messages: 3
Registered: January 2020
Junior Member
Thanks for the replies! I've figured out that if I install AdoptOpenJDK 8 (HotSpot) then download Eclipse it works. I can then download AdoptOpenJDK 11 (HotSpot) and create a project in Java SE-11. The problem is that for the class I am taking this semester the professor has stated that we need to uninstall older versions of Java to prevent grading errors. Even if I set AdoptOpenJDK 11 (HotSpot) as the default when I uninstall AdoptOpenJDK 8 (HotSpot) Eclipse gives me the Failed to create Java Virtual Machine error.

In the eclipse.ini file I've tried editing the:

-vm
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin

to

-vm
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home

With no luck. I've noticed that the AdoptOpenJDK 11 (HotSpot) file doesn't contain the Home/jre/bin extension that AdoptOpenJDK 8 (HotSpot) has. The jre folder is missing. I'm attaching a screenshot of this hierarchy.

Thanks again for the help.

Re: Failed to create the Java Virtual Machine [message #1820616 is a reply to message #1820589] Thu, 23 January 2020 21:35 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3710
Registered: July 2009
Senior Member

For a JDK installation, you don't want to interact with the "jre" directory's contents if you can avoid it. There should be both java and javac executables in the "bin" directory directly under "Home".

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Failed to create the Java Virtual Machine [message #1823198 is a reply to message #1820616] Sun, 22 March 2020 05:47 Go to previous messageGo to next message
Paun Miller is currently offline Paun MillerFriend
Messages: 7
Registered: March 2020
Junior Member
I am very new for eclipse. I bought a new MacBook. I come from MS windows. I got the same error message. Would any one will looking into my computer and fix it for me? I read many forum but still confuse and can not figure it out myself. Please someone help me my email is paun.miller@gmail.com. Please add me on hangouts.
Re: Failed to create the Java Virtual Machine [message #1823217 is a reply to message #1823198] Mon, 23 March 2020 02:12 Go to previous messageGo to next message
Paun Miller is currently offline Paun MillerFriend
Messages: 7
Registered: March 2020
Junior Member
Finally, I figure this out!
I uninstalled jdk-14, jdk-15, jdk-16 and leaved jdk-8u and it works!
I read so many forums and answers. They are all complicated. This one is the best. Easy and works.
Refer to this forum https://www.eclipse.org/forums/index.php?t=msg&th=1102885&goto=1823113&#msg_1823113.
Re: Failed to create the Java Virtual Machine [message #1823221 is a reply to message #1823217] Mon, 23 March 2020 05:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31159
Registered: July 2009
Senior Member
Thank you for posting on the other forum threads with the same problem. It's very nice when the people on this forum help each other!
Previous Topic:"Failed to create Java Virtual Machine
Next Topic:Eclipse Not opening
Goto Forum:
  


Current Time: Wed Jun 03 04:13:21 GMT 2020

Powered by FUDForum. Page generated in 0.03211 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top