Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Installation trouble(Failed to create the Java Virtual Machine)
Installation trouble [message #1823003] Tue, 17 March 2020 23:34 Go to next message
Stephanie Strom is currently offline Stephanie StromFriend
Messages: 2
Registered: March 2020
Junior Member
I am new to all of this and preparing for a class. I installed JDK 14. When I try to run the Eclipse installer I get "Alert: Failed to create the Java Virtual Machine". I am on macOS 10.15.3 Any assistance is appreciated!
Re: Installation trouble [message #1823005 is a reply to message #1823003] Wed, 18 March 2020 03:14 Go to previous messageGo to next message
Eric Hardcastle3 is currently offline Eric Hardcastle3Friend
Messages: 1
Registered: March 2020
Junior Member
I have the exact same error message with MacOS 10.14.5. Suggestions anyone? Would sure appreciate any advice...Thanks.
Re: Installation trouble [message #1823007 is a reply to message #1823005] Wed, 18 March 2020 05:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31605
Registered: July 2009
Senior Member
I suspect perhaps this is similar to this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=559482

But looking at the downloads of the JDKs, I don't see there are duplicate library issues.

You can also try to download a package from here:

https://www.eclipse.org/downloads/packages/

But that's likely to fail starting in the same way for the same reason, but it's worth a try. Please let us know if that works or fails.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Installation trouble [message #1823058 is a reply to message #1823007] Thu, 19 March 2020 01:48 Go to previous messageGo to next message
Shubham Shubham is currently offline Shubham ShubhamFriend
Messages: 1
Registered: March 2020
Junior Member
I tried to re-install the eclipse. But its again showing the same alert message.
Re: Installation trouble [message #1823060 is a reply to message #1823058] Thu, 19 March 2020 02:16 Go to previous messageGo to next message
K H is currently offline K HFriend
Messages: 2
Registered: March 2020
Junior Member
I am in the same spot. I have a brand new MacBook Pro that I installed jre-8u241-macosx-x64.dmg on. I am looking to do C/C++ development so I am trying to use the eclipse-cpp-2020-03-R-macosx-cocoa-incubation-x86_64.dmg file to install. During the installation, I am getting the Alert, "Failed to create the Java Virtual Machine". I have been on the forums and they are showing how one can configure the unzipped version of Eclipse so it can find the VM but I cannot find anything but a .dmg to download. What do I need to do in order to get past this Alert?

Thanks in Advance!
Re: Installation trouble [message #1823061 is a reply to message #1823058] Thu, 19 March 2020 02:38 Go to previous messageGo to next message
K H is currently offline K HFriend
Messages: 2
Registered: March 2020
Junior Member
I figured out my issue. I had originally installed the latest jdk-14 and then had installed jdk-8u. The issue was that I did not uninstall jdk-14. I think uninstalled everything and tested jdk-14. That had the same issue. I uninstalled that and reinstalled jdk-8u and it worked. Don't use jdk-14!
Re: Installation trouble [message #1823104 is a reply to message #1823061] Thu, 19 March 2020 14:20 Go to previous messageGo to next message
Georges Sysaath is currently offline Georges SysaathFriend
Messages: 1
Registered: March 2020
Junior Member
I had the exact same problem and what K H did did resolve my problem!
Re: Installation trouble [message #1823109 is a reply to message #1823104] Thu, 19 March 2020 14:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31605
Registered: July 2009
Senior Member
The issue is tracked by https://github.com/AdoptOpenJDK/openjdk-support/issues/52 and apparently affects 11 and 14.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Installation trouble [message #1823113 is a reply to message #1823109] Thu, 19 March 2020 15:41 Go to previous messageGo to next message
Stephanie Strom is currently offline Stephanie StromFriend
Messages: 2
Registered: March 2020
Junior Member
I uninstalled jdk-14 and installed jdk-8u and it works! Thank you!
Re: Installation trouble [message #1823213 is a reply to message #1823113] Mon, 23 March 2020 02:07 Go to previous messageGo to next message
Thuwa Tara is currently offline Thuwa TaraFriend
Messages: 7
Registered: March 2020
Junior Member
Thanks a ton, Stephanie. It works for me.
Re: Installation trouble [message #1823448 is a reply to message #1823213] Thu, 26 March 2020 19:43 Go to previous messageGo to next message
Hamilton Hardy is currently offline Hamilton HardyFriend
Messages: 1
Registered: March 2020
Junior Member
Thanks!!
Re: Installation trouble [message #1823927 is a reply to message #1823448] Sat, 04 April 2020 01:08 Go to previous messageGo to next message
Sid Sid is currently offline Sid SidFriend
Messages: 1
Registered: April 2020
Junior Member
I have the same issue.
How did you uninstall jdk14? I am unable to do that.
------------------------------
~ megs$ cd /library/Java/JavaVirtualMachines

JavaVirtualMachines megs$ sudo rm -rf jdk14.jdk

Password:

JavaVirtualMachines megs$ java -version

java version "14" 2020-03-17

Java(TM) SE Runtime Environment (build 14+36-1461)

Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
Re: Installation trouble [message #1823929 is a reply to message #1823927] Sat, 04 April 2020 02:12 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3904
Registered: July 2009
Senior Member

Isn't it /Library, not /library?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Installation trouble [message #1823949 is a reply to message #1823003] Sat, 04 April 2020 12:21 Go to previous messageGo to next message
Marseille Joseph is currently offline Marseille JosephFriend
Messages: 2
Registered: April 2020
Junior Member
Hi,
I had the same problem and i fixed it thanks to the link given by Ed Merks earlier.
I've tried several things without success.
No need to uninstal jdk14 or to edit the eclipse.ini file.

The only usefull and effective method was :

to fix it :

"cd /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/MacOS/"
then
"sudo rm /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/MacOS/libjli.dylib"
then
"sudo ln -s /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/lib/libjli.dylib libjli.dylib"

[Updated on: Sat, 04 April 2020 19:47]

Report message to a moderator

Re: Installation trouble [message #1823950 is a reply to message #1823929] Sat, 04 April 2020 12:36 Go to previous messageGo to next message
Marseille Joseph is currently offline Marseille JosephFriend
Messages: 2
Registered: April 2020
Junior Member
(void)

[Updated on: Sat, 04 April 2020 19:45]

Report message to a moderator

Re: Installation trouble [message #1824110 is a reply to message #1823003] Wed, 08 April 2020 06:10 Go to previous messageGo to next message
Aaron Zhou is currently offline Aaron ZhouFriend
Messages: 1
Registered: April 2020
Junior Member
I found a solution. And it has been solved on my computer

step1. rename libjli.dylib

cd /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/MacOS
sudo mv libjli.dylib libjli.dylib.bak

step2. create linked file for libjli.dylib
sudo ln -s ../Home/lib/libjli.dylib libjli.dylib

step3. restart Eclipse.

This should be a bug for Eclipse and should be fixed in the next version of Eclipse.

Re: Installation trouble [message #1824201 is a reply to message #1823949] Thu, 09 April 2020 11:48 Go to previous messageGo to next message
XING-CHAN LIN is currently offline XING-CHAN LINFriend
Messages: 1
Registered: April 2020
Junior Member
Thanks so much!

I've been stuck in this for several hours, and thanks to your answer, I' ve solved it!
Re: Installation trouble [message #1824548 is a reply to message #1823949] Fri, 17 April 2020 11:59 Go to previous messageGo to next message
Luigi Cavuoti is currently offline Luigi CavuotiFriend
Messages: 1
Registered: April 2020
Junior Member
Thanks a lot Joseph, this helped me so much, I had the problem twice,
but the first time I just deinstalled and installed but did not know what the problem was, this helped me so much.
Tanke best regards Luigi
Re: Installation trouble [message #1826097 is a reply to message #1823949] Sun, 19 April 2020 14:09 Go to previous messageGo to next message
Mohamed Ibrahim is currently offline Mohamed IbrahimFriend
Messages: 1
Registered: April 2020
Junior Member
@Marseille Joseph
Thank you for this. It worked nicely. Just want to add one thing: If you installed java with homebrew then
jdk-14.jdk
in the middle of the path becomes
openjdk-14.jdk
Re: Installation trouble [message #1833820 is a reply to message #1826097] Sat, 24 October 2020 20:59 Go to previous message
Gilbert Lopez is currently offline Gilbert LopezFriend
Messages: 1
Registered: October 2020
Junior Member
I had the same problem when installing the latest version of Eclipse. Eclipse IDE for Enterprise Java Developers (includes Incubating components)
Version: 2020-09 (4.17.0)
Build id: 20200910-1200
OS: Mac OS X, v.10.15.7, x86_64 / cocoa

In the eclipse.ini file:
-Dosgi.requiredJavaVersion=11

So I updated the following to point to my JVM 11 location.
-vm
/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin

Hope this helps.


Previous Topic:Problems installing Eclipse 32-bit on Linux
Next Topic:What happens when a user-installed feature is subsequently installed to the shared installation?
Goto Forum:
  


Current Time: Wed Nov 25 19:50:05 GMT 2020

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

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

Back to the top