GraalVM原生映像(Substrate VM – Darwin),具有Java SE兼容性。

huangapple go评论67阅读模式
英文:

GraalVM native image (Substrate VM - Darwin) with Java SE compatibility

问题

SubstrateVM允许将JAVA应用程序编译成macOS(Darwin)本机可执行文件。我找不到任何地方记录SubstrateVM实现了哪些类型的Java(SE)包。这是我在决定在将我的应用程序编译成macOS(iOS)本机可执行文件时所关注的最大问题,因为一些开源/第三方Java库可能使用某些Java包(sun或Java Swing),这些包可能在SubtracteVM中找不到。我过去常常使用类似robovm的AOT,我知道很多Java包在其中没有实现。

到目前为止,我找到的有用限制是这个链接。但它仍然没有提到它实现了哪些Java SE的部分(或未实现)。是否有人可以指点我在哪里可以找到这些信息?

英文:

SubstrateVM allow to compile JAVA application into macOS (Darwin) native executable. I can't find any place documenting that what kind of Java (SE) packages which SubstrateVM has implemented. That is the biggest concern I have when I am going to decide what kind of Java Libraries I can use when I want to compile my application into macOS (iOS) native executable, because some of the open source/third party Java Libraries might be using certain Java packages (sun or Java Swing) which might not be found in SubtracteVM. I used to use similar AOT like robovm, I know there are a lot of Java packages are not implemented in there.

So far the useful limitation I can find is this one. But it still doesn't mention which part of Java SE that it is (or not) implemented with. Can anyone give a pointer where can I find those information?

答案1

得分: 2

我认为你正在寻找的是 SubstrateVM 的 LIMITATIONS.md 文件。这列出了 SubstrateVM 不支持或需要额外配置的所有 Java 特性。其中最显著的包括动态类加载、反射和 JNI(通常可以通过额外配置来解决),以及序列化和安全管理器。

祝好,
Christian

英文:

I think what you are looking for is the LIMITATIONS.md file of SubstrateVM. This lists all the features of Java that SubstrateVM does not support or needs additional configuration for. Most prominently, this includes Dynamic Class Loading, Reflection, and JNI (all three can be worked around by additional configuration, typically) or Serialization and Security Managers.

Best,
Christian

huangapple
  • 本文由 发表于 2020年8月19日 00:03:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/63472451.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定