Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » JVM shared library does not contain the JNI_CreateJavaVM symbol
JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1823974] Sun, 05 April 2020 21:26 Go to next message
Jesse Melendez is currently offline Jesse MelendezFriend
Messages: 2
Registered: April 2020
Junior Member
i have installed Papyrus 4.7 on the Mac, OS version Mojave(10.14.6), and when I try to launch it I get the following error:

"The JVM shared library "/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib"
does not contain the JNI_CreateJavaVM symbol."

I have googled and searched on this forum(for about 3 hours). I have tried to the change to '-vm" value in the info.plist and it still does not work.

I have tried it on another machine, and a few teammates have tried as well. Same issue. Does anyone run Papyrus on the mac? Does this even get tested before release? I found it mind boggling that this does not work on any machine that i have tried, not anyone of my teammate's machines.

Note, that I installed the latest Eclipse and it does launch just fine.

So, does anyone know what is going on here?

Thanks,
Jesse
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1823986 is a reply to message #1823974] Mon, 06 April 2020 06:13 Go to previous messageGo to next message
jb tw is currently offline jb twFriend
Messages: 47
Registered: December 2019
Member
I run papyrus also on OSX. but I think on osx i have still 4.5 and as second i use openjdk from homebrew
maybe i can test it tonight

[Updated on: Mon, 06 April 2020 06:14]

Report message to a moderator

Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1824032 is a reply to message #1823986] Mon, 06 April 2020 18:35 Go to previous messageGo to next message
jb tw is currently offline jb twFriend
Messages: 47
Registered: December 2019
Member
I have checked it
Current papyrus 4.7.0 works at: OSX 10.11.6
Homebrew installed and i use the java cask (See: https://formulae.brew.sh/cask/java#default)
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1824033 is a reply to message #1824032] Mon, 06 April 2020 18:48 Go to previous messageGo to next message
Jesse Melendez is currently offline Jesse MelendezFriend
Messages: 2
Registered: April 2020
Junior Member
Thanks Jb Tw.

I will try it the way you installed it.

I do have kind of a workaround. I installed the full Eclipse, then installed Papyrus in there. It runs within Eclipse and no issues actually running Eclipse. I would think I would get the same error. I assume that Papyrus is based on a different version of Eclipse.
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1836137 is a reply to message #1824033] Tue, 22 December 2020 11:18 Go to previous messageGo to next message
nimo mayr is currently offline nimo mayrFriend
Messages: 22
Registered: April 2019
Junior Member
I also have exact the same problem with "2020-12 release (5.0.0)" on Mac OS.

"The JVM shared library "/Library/Java/JavaVirtualMachines/jdk-12.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib"
does not contain the JNI_CreateJavaVM symbol."

With older versions of papyrus (2019-03) it works without this problem. I also have a seperate eclipse installation of the current release which also runs without problems. So it may be that anything is wrong with the Papyrus RPC settings? I have also tried to explicitly set the jvm path in both papyrus.ini and info.plist with no success. Anyone knows how to solve this issue?

[Updated on: Tue, 22 December 2020 11:24]

Report message to a moderator

Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1836139 is a reply to message #1836137] Tue, 22 December 2020 11:34 Go to previous messageGo to next message
nimo mayr is currently offline nimo mayrFriend
Messages: 22
Registered: April 2019
Junior Member
Ok it now works, I added jvm path to info.plist. After adding, you must close the finder, then start papyrus.
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837211 is a reply to message #1836139] Mon, 25 January 2021 08:30 Go to previous messageGo to next message
Claude Rousseau is currently offline Claude RousseauFriend
Messages: 10
Registered: January 2021
Junior Member
nimo mayr wrote on Tue, 22 December 2020 11:34
Ok it now works, I added jvm path to info.plist. After adding, you must close the finder, then start papyrus.

Hello
I'm facing the same issue
I'm using the last download of Papyrus with Eclipse 2020-12
I've seen I needed to add JVM path to info.plist
I've not found Papyrus in fo.plist

What Can I do?
Thx
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837355 is a reply to message #1837211] Thu, 28 January 2021 11:05 Go to previous messageGo to next message
smaoui asma is currently offline smaoui asmaFriend
Messages: 50
Registered: July 2009
Location: Paris Saclay, France
Member
the info.plist is in the Contents folder of the Papyrus.app In Mac Machine you can open the Papyrus.app usiong the terminal Best Regards
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837459 is a reply to message #1837355] Sat, 30 January 2021 14:56 Go to previous messageGo to next message
Claude Rousseau is currently offline Claude RousseauFriend
Messages: 10
Registered: January 2021
Junior Member
smaoui asma wrote on Thu, 28 January 2021 11:05
the info.plist is in the Contents folder of the Papyrus.app In Mac Machine you can open the Papyrus.app usiong the terminal Best Regards

Hello Thx Asma
I've learnt how a Mac app was built ; I didn't know that actually, it was a folder .app, with a Contents sub-folder.
Now, I could open the info.plist file and have performed the mentioned actions:
I've run: /usr/libexec/java_home -V to get the full path of jdk 11
I've added the b below line out of the comments:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home</string>
Now, when running Papyrus, I'm getting a new message:

Translating from french:
You need Java6 to run this application

What do to?
Thx again for your kind help
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837463 is a reply to message #1837459] Sat, 30 January 2021 18:10 Go to previous messageGo to next message
Claude Rousseau is currently offline Claude RousseauFriend
Messages: 10
Registered: January 2021
Junior Member
Claude Rousseau wrote on Sat, 30 January 2021 14:56
smaoui asma wrote on Thu, 28 January 2021 11:05
the info.plist is in the Contents folder of the Papyrus.app In Mac Machine you can open the Papyrus.app usiong the terminal Best Regards

Hello Thx Asma
I've learnt how a Mac app was built ; I didn't know that actually, it was a folder .app, with a Contents sub-folder.
Now, I could open the info.plist file and have performed the mentioned actions:
I've run: /usr/libexec/java_home -V to get the full path of jdk 11
I've added the b below line out of the comments:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home</string>
Now, when running Papyrus, I'm getting a new message:

Translating from french:
You need Java6 to run this application

What do to?
Thx again for your kind help


Here is what the info.plst file looks like ; now, I'm always getting the initial error message

<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>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-11.0.9.jdk/Contents/Home/bin/java</string>

<string>-keyring</string>
<string>~/.eclipse_keyring</string>

</array>

Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837483 is a reply to message #1837463] Sun, 31 January 2021 17:36 Go to previous messageGo to next message
Claude Rousseau is currently offline Claude RousseauFriend
Messages: 10
Registered: January 2021
Junior Member
I've also added below lines in java 11 info.plist:
<key>JVMCapabilities</key>
<array>
<string>BundledApp</string>
<string>CommandLine</string>
<string>JNI</string>
</array>
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837632 is a reply to message #1837483] Wed, 03 February 2021 13:25 Go to previous messageGo to next message
Claude Rousseau is currently offline Claude RousseauFriend
Messages: 10
Registered: January 2021
Junior Member
Any other idea?
Thx
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837699 is a reply to message #1837632] Thu, 04 February 2021 11:00 Go to previous messageGo to next message
smaoui asma is currently offline smaoui asmaFriend
Messages: 50
Registered: July 2009
Location: Paris Saclay, France
Member
Hello Claude,
It seems that this problem is related to a previous java installations in your machine.
did you try to clear the java cache as explained here https://docs.oracle.com/javase/9/install/installation-jdk-and-jre-macos.htm#JSJIG-GUID-7EB4F697-F3D1-40EA-ACDF-07FA90F02D57
be sure that your system is using the java 11 required by papyrus by running java-version
Best Regards,
Asma
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1837805 is a reply to message #1837699] Sun, 07 February 2021 15:46 Go to previous messageGo to next message
Claude Rousseau is currently offline Claude RousseauFriend
Messages: 10
Registered: January 2021
Junior Member
Hello Asma
I've cleant the Java cache. I'm quite sure I've installed Java 11 but, when looking at system preferences, I only see Java 8 is present. Strange. I'll try to set it up again
The same message is displayed when running Papyrus and the message displays a Java 11 directory

No other release than jdk, available for my Mac
Once set up again, in Java control panel, I can only see Java 8 JRE
When running java --version, I can see also JDK 11

[Updated on: Sun, 07 February 2021 16:02]

Report message to a moderator

Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1838524 is a reply to message #1837805] Sat, 27 February 2021 13:16 Go to previous messageGo to next message
Claude Rousseau is currently offline Claude RousseauFriend
Messages: 10
Registered: January 2021
Junior Member
Here is the result of java -version:
java version "11.0.10" 2021-01-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode)

It still does not work
No more idea
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1838694 is a reply to message #1823974] Wed, 03 March 2021 17:41 Go to previous messageGo to next message
Pietro Braione is currently offline Pietro BraioneFriend
Messages: 7
Registered: June 2012
Junior Member
I have a similar problem. In my case the system is Big Sur 11.2.2 with an Intel i9 CPU, and the Java setup is AdoptOpenJDK:

$ java -version
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)

I tried to add the suggested lines to Info.plist to no avail. Then, I tried to run the papyrus binary from the console, and this is the result:

$ cd /Users/pietro/Desktop/Papyrus.app/Contents/MacOS
$ ./papyrus
2021-03-03 18:22:48.537 papyrus[30028:1757120] Error loading /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/MacOS/libjli.dylib: dlopen(/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/MacOS/libjli.dylib, 265): no suitable image found. Did find:
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/MacOS/libjli.dylib: code signature in (/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/MacOS/libjli.dylib) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs

The fact that macOS complains for different Team IDs apparently is a matter of notarization. Perhaps the papyrus binary was not notarized correctly?
Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1839548 is a reply to message #1823974] Tue, 23 March 2021 17:09 Go to previous messageGo to next message
Theodore Norvell is currently offline Theodore NorvellFriend
Messages: 3
Registered: March 2021
Junior Member
This is frigging crazy.

I just installed Eclipse 2021-03 which kindly installed JDK 11 and made it my default java, and that worked.

But when I install Papyrus.app using the papyrus-2020-12-5.0.0-macosx64.tar.gz I get the above message.

It's clear from the message it was using JDK 11.

I tried every major JDK version I have 10, 1.8, 1.7 all had the same missing symbol message. When I tried 1.6 I got "Failed to create the Java Virtual Machine."

By the way the advice to "clear the cache" using the Java control panel is useless because the Java Control Panel is gone as of JDK 11.

Why does Papyrus not use the nice Eclipse installer?\

Any help appreciated.

Re: JVM shared library does not contain the JNI_CreateJavaVM symbol [message #1843066 is a reply to message #1839548] Wed, 14 July 2021 08:10 Go to previous message
Daniel Laera is currently offline Daniel LaeraFriend
Messages: 1
Registered: July 2021
Junior Member
is important to install this version
https://download.eclipse.org/oomph/jre/?vm=2_11_0_0_64_0&pi=http://www.eclipse.org/downloads/images/java.png&pn=Eclipse%20IDE%20for%20Java%20Developers

AdoptOpenJDK 11, 14

especially for the latest arm64 macos version and I think it resolves other versions problems
Previous Topic:UML to XML
Next Topic:MacOS, UseCase, Actors not stick characters
Goto Forum:
  


Current Time: Thu Apr 25 16:28:24 GMT 2024

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

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

Back to the top