Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Installation Problem(Failed to create java virtual machine alert)
Installation Problem [message #1823383] Wed, 25 March 2020 20:13 Go to next message
Ashley Watts is currently offline Ashley WattsFriend
Messages: 3
Registered: March 2020
Junior Member
I've read through the other post with no luck.

I had eclipse installed at one time and then it just quit working.

I am on a mac book pro. OS version 10.13.6
I installed Java 8 update 241

When i try to run the eclipse installer I get the message
Failed to create java virtual machine

I am pretty new to this any help would be appreciated
Re: Installation Problem [message #1823391 is a reply to message #1823383] Thu, 26 March 2020 04:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Where specifically did you get Java update from? It sounds like much the same problems we see regarding Java 11 and Java 14, but we'd need to know where you got your Java from.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Installation Problem [message #1823429 is a reply to message #1823391] Thu, 26 March 2020 13:32 Go to previous messageGo to next message
Ulrich Rueth is currently offline Ulrich RuethFriend
Messages: 4
Registered: March 2020
Junior Member
I have the same problem with the following configuration:
- Completely new MacBook Pro with MacOS Catalina 10.15.4
- Eclipse: eclipse-php-2020-03-R-macosx-cocoa-x86_64
- Java: OpenJDK openjdk-14_osx-x64_bin from jdk.java.net/14/

Eclipse immediately exists with the following error when started from command line, prompting that it "Failed to create the Java Virtual Machine":

Error: could not find libjava.dylib
Failed to GetJREPath()

I found the following bug report in OpenJDK, which sounds pretty much as if it is a OpenJDK issue: bugs.openjdk.java.net/browse/JDK-8213362

Thanks for any advise.
Re: Installation Problem [message #1823436 is a reply to message #1823391] Thu, 26 March 2020 16:30 Go to previous messageGo to next message
Ashley Watts is currently offline Ashley WattsFriend
Messages: 3
Registered: March 2020
Junior Member
I got the download from
oracle.com
Re: Installation Problem [message #1823449 is a reply to message #1823383] Thu, 26 March 2020 19:57 Go to previous messageGo to next message
Frederic TOURAND is currently offline Frederic TOURANDFriend
Messages: 1
Registered: March 2020
Junior Member
Hello
I had the same error message on a brand new installation.
When you double clic on Eclipse installation package Eclipse Installer mounts
Select this volume, right click on Eclipse Installer and open the content
The copy/paste the content directory in another location (for example Download folder)
Open the eclipse.plist and modify the location of the Java JDK.
Open a terminal session :
$ cd /
Create a text file named '.bash_profile' containing the line
export JAVA_HOME=$(/usr/libexec/java_home)

$ source .bash_profile
$ env

Then
$ cd // go to your installation directory (Download?)
$ xattr -rc eclipse-inst

Then
go to the finder, double click on eclipse-inst

it worked for me!
Re: Installation Problem [message #1823457 is a reply to message #1823449] Thu, 26 March 2020 20:59 Go to previous messageGo to next message
Ulrich Rueth is currently offline Ulrich RuethFriend
Messages: 4
Registered: March 2020
Junior Member
... unfortunately not for me - but thanks anyway!
Re: Installation Problem [message #1823471 is a reply to message #1823449] Fri, 27 March 2020 03:32 Go to previous messageGo to next message
Ashley Watts is currently offline Ashley WattsFriend
Messages: 3
Registered: March 2020
Junior Member
What would the installation directory be?

I get to here and get this

Ashleys-MBP-2:Contents ashleywatts$ $ xattr -rc eclipse-inst
-bash: $: command not found
Re: Installation Problem [message #1823474 is a reply to message #1823471] Fri, 27 March 2020 06:28 Go to previous messageGo to next message
Ulrich Rueth is currently offline Ulrich RuethFriend
Messages: 4
Registered: March 2020
Junior Member
There's a (not very nice, but working) work-around, see https://www.eclipse.org/forums/index.php/t/1102885/
Re: Installation Problem [message #1823480 is a reply to message #1823474] Fri, 27 March 2020 07:41 Go to previous message
Ulrich Rueth is currently offline Ulrich RuethFriend
Messages: 4
Registered: March 2020
Junior Member
OK, my above mentioned work-around to use an older JDK works for me.

- Download e.g. OpenJDK 13 from https://jdk.java.net/13/
- Unpack and copy to e.g. /Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/
- Go to Eclipse in your /Applications folder, right-click and select "Show package contents", navigate to /Applications/Eclipse.app/Contents/Eclipse
- Open eclipse.ini
- Insert the following two lines (it's important to really have the -vm and the path on two separate lines!) BEFORE the existing entry -vmargs:

-vm
/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin


- Safe, exit, launch Eclipse.

This worked for me, i.e. I'm now running on an older JDK version. This is not perfect, but ok for the time being, as long as the bug in OpenJDK 14 is not fixed.
Previous Topic:Installation of Eclipse on MacOS Catalina
Next Topic:reopen a project
Goto Forum:
  


Current Time: Fri Apr 19 05:56:07 GMT 2024

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

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

Back to the top