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: 3907
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: 3907
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: 3907
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
Thuwa Tara is currently offline Thuwa TaraFriend
Messages: 7
Registered: March 2020
Junior Member
No Message Body

[Updated on: Tue, 17 November 2020 03:31]

Report message to a moderator

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
Thuwa Tara is currently offline Thuwa TaraFriend
Messages: 7
Registered: March 2020
Junior Member
No Message Body

[Updated on: Tue, 17 November 2020 03:31]

Report message to a moderator

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

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:"Failed to create Java Virtual Machine
Next Topic:Eclipse Not opening
Goto Forum:
  


Current Time: Tue Dec 01 09:21:02 GMT 2020

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

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

Back to the top