Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » ERROR IN SETUP MAC OS X 10.15.2(I CAN'T INSTALL ECLIPSE 2019-12 ON MAC OS X)
ERROR IN SETUP MAC OS X 10.15.2 [message #1818601] Fri, 20 December 2019 11:59 Go to next message
Fco Javier Alonso is currently offline Fco Javier AlonsoFriend
Messages: 2
Registered: December 2019
Junior Member
When I try to install Eclipse 2019-12 on MAC OS X 10.15.2 I obtain next message " The JVM shared library "/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/../lib/server/libjvm.dylib"
does not contain the JNI_CreateJavaVM symbol."

Anybody knows what's going on?.

Thanks.
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818619 is a reply to message #1818601] Fri, 20 December 2019 16:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30820
Registered: July 2009
Senior Member
Well that's a new one. I only have a virtual box for testing and it's Sierra; I could not find a Catalina ISO image. You could try a packaged download from:

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

It's likely to fail the same way because the Eclipse Installer is just an Eclipse application. It would be great if you could report back on your success or failure using the packaged download.

In the worst case you could try Java 8 instead...
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818620 is a reply to message #1818619] Fri, 20 December 2019 16:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30820
Registered: July 2009
Senior Member
You might also try to Google "the jvm shared library does not contain the jni_createjavavm symbol" and see if any of those related links help.

Please let us know how it works out for you so we know how best to help the next person.
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818649 is a reply to message #1818620] Sat, 21 December 2019 20:12 Go to previous messageGo to next message
Dominik Wrona is currently offline Dominik WronaFriend
Messages: 4
Registered: December 2019
Junior Member
I have encountered the exact same error on OS 10.14.6.

I've looked at the links, they all say to edit the Info.plist file in the Package Contents of the Installer app. But I can't do this because it is locked - I assume it wasn't locked pre-2018 when all these responses were written.

My exact error:
The JVM shared library "/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/../lib/server/libjvm.dylib"
does not contain the JNI_CreateJavaVM symbol.

Even so, their suggestion was to modify Info.plist to point to the correct directory. But this error clearly identifies the correct directory that I want to use, so even if I was allowed to edit the file I'm not sure it would help.

For background, I have 2 older versions of eclipse installed (eclipse oxygen and june 2019), as well as 2 'javas' - 8 and 13. My goal is to update eclipse to the newest version so that it supports java 13.

EDIT: So I managed to unlock the Info.plist by dragging the app out of the dmg onto the desktop, but now post-edit it says the file (Eclipse Installer.app) is damaged and cannot be opened.

[Updated on: Sat, 21 December 2019 21:09]

Report message to a moderator

Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818651 is a reply to message #1818649] Sat, 21 December 2019 23:35 Go to previous messageGo to next message
Dominik Wrona is currently offline Dominik WronaFriend
Messages: 4
Registered: December 2019
Junior Member
I feel as if it could be an Eclipse problem with adjusting to Java 13; I know 13 wasn't even supported until this newest release. I will monitor this thread until hopefully someone replies with a way to resolve this issue.
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818654 is a reply to message #1818651] Sun, 22 December 2019 06:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30820
Registered: July 2009
Senior Member
To run on the latest MacOS, the downloaded *.dmg now must be not only be signed but also notarized. Perhaps notarization locks it somehow? I imagine though that if you copied it somewhere, it should no longer be locked. Or are you talking about modifying the Info.plist of the Java installation?

But again, the same comment applies as before. Please try to download a package from here:

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

The "Eclipse IDE for Java Developers" will have support for Java 13 (as will any other package that contains Java). These downloaded *.dmg are also signed and notarized, and I suspect they'll have the same launch problem as the Eclipse Installer (both being Eclipse applications).

But if no one answers that question, we won't be able to help anyone. :-(

As far as I can tell, the IDE has been tested on MacOS, but I'm not sure which version of the OS, and it appears tested only for Java 8:

https://download.eclipse.org/eclipse/downloads/drops4/R-4.14-201912100610/testResults.php

These instructions explain how you can tell Eclipse to use a specific JVM:

https://wiki.eclipse.org/Eclipse.ini

In the installer, this file is called eclipse-inst.ini.

It would be good to understand if this works for Java 8 but not for Java 13.

And note that an IDE running on Java 8 can still support any version of Java up to and including Java 13. The Preferences pages allow you to configure multiple JREs and use any of them...
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818658 is a reply to message #1818654] Sun, 22 December 2019 14:10 Go to previous messageGo to next message
Dominik Wrona is currently offline Dominik WronaFriend
Messages: 4
Registered: December 2019
Junior Member
Ok, so I downloaded the 'Eclipse IDE for java developers", as requested, from the packages which doesn't require installation.
Everything works perfectly fine (including support for Java 13), though of course I think some options are missing in this version that are present in the main version?

[Updated on: Sun, 22 December 2019 14:42]

Report message to a moderator

Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818660 is a reply to message #1818658] Sun, 22 December 2019 14:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30820
Registered: July 2009
Senior Member
No, there is no essential difference with this prepackaged version and what you'd install with the installer so no options will be missing.

Not that you care about the following low level details, but I thought to record them here anyway.

I see libjvm.dylib mentioned here:

https://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c#n82

And here it's tested for the symbol JNI_CreateJavaVM and when it doesn't find it, it produces the message you see:

https://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c#n337

But this is the same launcher used by the packaged application as the Eclipse installer application, so I don't understand why one would work and the other not. It also doesn't look like the native launcher itself has changed for some years and this is the first I hear about a problem like this...
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818662 is a reply to message #1818658] Sun, 22 December 2019 15:49 Go to previous messageGo to next message
Fco Javier Alonso is currently offline Fco Javier AlonsoFriend
Messages: 2
Registered: December 2019
Junior Member
I just tested this package and returned the same error. I think is something related with Java 13, I think the problem is in the file info.plist inside the installation package, concretely the problem is these 2 lines:
<string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>

when you have installed Java 13, the folder is jdk-13.0.1.jdk instead 1.8.0.jdk,
so the right path it index.php/fa/37010/0/would be next:

<string>/Library/Java/JavaVirtualMachines/13.0.1.jdk/Contents/Home/bin/java</string>

but this file can not be changed because is blocked , so I suggest to the team in charge of building the package , please build a new package with the right plist file.

Thanks
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818667 is a reply to message #1818662] Sun, 22 December 2019 17:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30820
Registered: July 2009
Senior Member
I would expect the package to have the same error given that it uses the same native launcher executable as the installer...

What I see in Info.plist is list this:
	<key>Eclipse</key>
		<array>
			<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,
					or add a VM found via $/usr/libexec/java_home -V
				<string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>
				<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>
			-->
			<string>-keyring</string>
      <string>~/.eclipse_keyring</string>
		</array>
I.e., these VM lines are commented out and are just an "example" for how one could explicitly point at a specific JVM. This can also be accomplished in the eclipse.ini (eclipse-inst.ini) instead, I believe. But I don't believe this is the cause of the problem.

The problem really does seem to be that the symbol the native code is looking for in the JNI library (which it appears to correctly find) does not actually exist and because of that, the application cannot be launched.

Likely all this would work properly with Java 8 and likely the native launcher needs to be improved to handle whatever has changed in Java 13...

I'll hunt if a Bugzilla is already opened for this issue and if not I'll open one, pointing at this thread.
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818668 is a reply to message #1818667] Sun, 22 December 2019 17:40 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30820
Registered: July 2009
Senior Member
I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=558570 to track this issue. At this point I can only suggest installing Java 8 instead or as well....
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818686 is a reply to message #1818668] Mon, 23 December 2019 09:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30820
Registered: July 2009
Senior Member
I wanted to express my thanks to both of you for reporting this problem and for helping to further diagnose the problem. Thanks to your help, and the great help from Eclipse Platform team's committers, the problem is now fixed and re-downloading the fixed *.dmg should work properly on the latest Mac OS:

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2019-12/R/eclipse-inst-mac64.dmg

The mirrors are still catching up, but in a few hours it should be available on all the mirrors for faster download.
Re: ERROR IN SETUP MAC OS X 10.15.2 [message #1818694 is a reply to message #1818686] Mon, 23 December 2019 14:30 Go to previous message
Dominik Wrona is currently offline Dominik WronaFriend
Messages: 4
Registered: December 2019
Junior Member
Indeed it does work now, thank you for your help and attention.
Previous Topic:Compatibility problem of dependencies on com.google.common.* between EMF Compare and Xtext
Next Topic:Maven build war file
Goto Forum:
  


Current Time: Mon Jan 27 09:16:16 GMT 2020

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

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

Back to the top