[英]Check java library compatibility with GraalVM
I'm studying GraalVM and I would like to try to use some library that I use in my project. 我正在学习GraalVM,我想尝试使用我在项目中使用的一些库。 There is some tool that can check the whole code and give me a report about code not compatible with GraalVM native image?
有一些工具可以检查整个代码并给我一个关于与GraalVM原生图像不兼容的代码的报告?
Thanks in advance, Davide 在此先感谢Davide
It would be hard and misleading to build a tool that works for any given JVM library without the application in which this library is used. 如果没有使用此库的应用程序,那么构建适用于任何给定JVM库的工具将是困难和误导的。 The reason is that support of a library depends on two major things: (1) which functions in the library are used, and (2) which static initializers are executed during image generation as opposed to image runtime.
原因是库的支持取决于两个主要因素:(1)使用库中的哪些函数,以及(2)在图像生成期间执行哪些静态初始化器而不是图像运行时。
GraalVM native-image
itself will report features that are currently not supported in all of the reachable code on the classpath. GraalVM
native-image
本身将报告类路径中所有可访问代码当前不支持的功能。 The error reporting mechanism of native-image
should provide enough information about the unsupported features that allows the user to fix them. native-image
的错误报告机制应提供有关允许用户修复它们的不支持功能的足够信息。
native-image
should be used in conjunction with the native-image-configure
tool that generates configuration files necessary for configuring the native-image
tool for a given project. native-image
应与native-image-configure
工具结合使用,该工具native-image
成为给定项目配置本native-image
工具所必需的配置文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.