leo

Results 6 comments of leo

> have fixed sureness h2 bug todo build native images I would like to try this part.

``` ➜ hertzbeat git:(springboot3) ✗ native-image -jar manager/target/hertzbeat.jar ======================================================================================================================== GraalVM Native Image: Generating 'hertzbeat' (executable)... ======================================================================================================================== [1/7] Initializing... (12.0s @ 0.11GB) Version info: 'GraalVM 22.3.3 Java 17 CE' Java version...

`java -agentlib:native-image-agent=config-output-dir=path -jar pathofjar` 这条命令可以生成一些反射的配置文件,帮助graalvm和native-image解决反射的问题,但是我没有成功,native-image命令显示找不到。

如果直接放在jar包里,是可以找到的,但是native-image还是有一些classpath的报错,比如他显示无法找到netty之类的依赖包。 ``` ➜ hertzbeat git:(springboot3) ✗ native-image -jar manager/target/hertzbeat.jar ======================================================================================================================== GraalVM Native Image: Generating 'hertzbeat' (executable)... ======================================================================================================================== Warning: Could not resolve [Lio.netty.resolver.dns.macos.DnsResolver; for reflection configuration. Reason: java.lang.ClassNotFoundException: io.netty.resolver.dns.macos.DnsResolver. Warning: Could...

I have done some test but can not reproduce that behavior you showed. Could you show some detailed informations? Here is my configuration. I started my application via package which...