System.java Development Question (original) (raw)

David Holmes david.holmes at oracle.com
Sun Aug 5 23:53:51 UTC 2018


On 4/08/2018 10:29 PM, mr rupplin wrote:

Any help?

Patience is a virtue. ;-)

As Alan indicated in older releases, like 9, there is a mapfile used to tell the linker about exported entry points to native libraries. As you are using OpenJDK 9 you will need to add the appropriate entry in

jdk/make/mapfiles/libjava/mapfile-vers

David


From: mr rupplin <mearvk at outlook.com> Sent: Friday, August 3, 2018 9:42:26 AM To: Alan Bateman; core-libs-dev at openjdk.java.net Subject: Re: System.java Development Question

This is an OpenJDK 9 build. Can you explain? I'm very interested in getting all the details understood. Hey thanks! MR


From: Alan Bateman <Alan.Bateman at oracle.com> Sent: Friday, August 3, 2018 9:38 AM To: mr rupplin; core-libs-dev at openjdk.java.net Subject: Re: System.java Development Question

On 03/08/2018 06:22, mr rupplin wrote: :

We get the following after running a trivial Java program: Exception in thread "main" java.lang.UnsatisfiedLinkError: java.lang.System.setMemoryAllocationListener0(Ljava/lang/memory/MemoryAllocationListener;)V at java.base/java.lang.System.setMemoryAllocationListener0(Native Method) at java.base/java.lang.System.setMemoryAllocationListener(System.java:261) at Hope.(Hope.java:19) at Hope.main(Hope.java:11) -- -- Can we skip right to it? What is the issue here? Which JDK build is this? I can't tell if it has the map files used by the linker (mapfile-vers in the case of libjava) or not. The map files don't exist in the main line but they may exist if you are working on a patch for a previous release. -Alan



More information about the core-libs-dev mailing list