Skip to main content



      Home
Home » Newcomers » Newcomers » Installation trouble(Failed to create the Java Virtual Machine)
Installation trouble [message #1823003] Tue, 17 March 2020 19:34 Go to next message
Eclipse UserFriend
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] Tue, 17 March 2020 23:14 Go to previous messageGo to next message
Eclipse UserFriend
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 01:52 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Installation trouble [message #1823058 is a reply to message #1823007] Wed, 18 March 2020 21:48 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 18 March 2020 22:16 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 18 March 2020 22:38 Go to previous messageGo to next message
Eclipse UserFriend
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 10:20 Go to previous messageGo to next message
Eclipse UserFriend
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 10:42 Go to previous messageGo to next message
Eclipse UserFriend
The issue is tracked by https://github.com/AdoptOpenJDK/openjdk-support/issues/52 and apparently affects 11 and 14.
Re: Installation trouble [message #1823113 is a reply to message #1823109] Thu, 19 March 2020 11:41 Go to previous messageGo to next message
Eclipse UserFriend
I uninstalled jdk-14 and installed jdk-8u and it works! Thank you!
Re: Installation trouble [message #1823213 is a reply to message #1823113] Sun, 22 March 2020 22:07 Go to previous messageGo to next message
Eclipse UserFriend
Thanks a ton, Stephanie. It works for me.
Re: Installation trouble [message #1823448 is a reply to message #1823213] Thu, 26 March 2020 15:43 Go to previous messageGo to next message
Eclipse UserFriend
Thanks!!
Re: Installation trouble [message #1823927 is a reply to message #1823448] Fri, 03 April 2020 21:08 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 03 April 2020 22:12 Go to previous messageGo to next message
Eclipse UserFriend
Isn't it /Library, not /library?
Re: Installation trouble [message #1823949 is a reply to message #1823003] Sat, 04 April 2020 08:21 Go to previous messageGo to next message
Eclipse UserFriend
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 15:47] by Moderator

Re: Installation trouble [message #1823950 is a reply to message #1823929] Sat, 04 April 2020 08:36 Go to previous messageGo to next message
Eclipse UserFriend
(void)

[Updated on: Sat, 04 April 2020 15:45] by Moderator

Re: Installation trouble [message #1824110 is a reply to message #1823003] Wed, 08 April 2020 02:10 Go to previous messageGo to next message
Eclipse UserFriend
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 07:48 Go to previous messageGo to next message
Eclipse UserFriend
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 07:59 Go to previous messageGo to next message
Eclipse UserFriend
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 10:09 Go to previous messageGo to next message
Eclipse UserFriend
@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 16:59 Go to previous message
Eclipse UserFriend
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: Sun Apr 20 16:35:18 EDT 2025

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

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

Back to the top