摘要: GraalVM使用Maven进行构建native image https://graalvm.github.io/native-build-tools/latest/end-to-end-maven-guide.html Resource处理: https://www.graalvm.org/lat 阅读全文
posted @ 2025-06-17 21:19 漠孤烟 阅读(23) 评论(0) 推荐(0)
摘要: 代码 try { // resourceDirectory 是classpath或resources里的路径,例如:META-INF Enumeration<URL> resources = this.getClass().getClassLoader().getResources(resource 阅读全文
posted @ 2025-06-03 11:30 漠孤烟 阅读(15) 评论(0) 推荐(0)
摘要: 以GraalVM 24社区版为例: 命令行及参数 native-image --expert-options 运行结果 -H:±AllowIncompleteClasspath Deprecated. Default: - (disabled). -H:±AllowVMInspection Enab 阅读全文
posted @ 2025-06-01 22:58 漠孤烟 阅读(36) 评论(0) 推荐(0)
摘要: resource-config.json 配置GraalVM静态资源文件声明配置: resources/META-INF/native-image/resource-config.json ... { "pattern": "static/.*" } ... 支持通配符,如果是全名匹配: 则: .. 阅读全文
posted @ 2025-06-01 12:28 漠孤烟 阅读(26) 评论(0) 推荐(0)
摘要: Maven项目里添加plugin <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifactId> <version>0.9.28</version> <configurat 阅读全文
posted @ 2025-05-27 07:28 漠孤烟 阅读(74) 评论(0) 推荐(0)
摘要: native-maven-plugin列出所有构建相关参数 -H:PrintFlags=是查询所有构建时可配置的参数 <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifac 阅读全文
posted @ 2025-04-14 22:40 漠孤烟 阅读(153) 评论(0) 推荐(0)
摘要: 对于GraalVM Native Image编译后的Lambda序列化问题,我们需要采用不同的策略。以下是几种解决方案: 使用注解处理器在编译时生成元数据: // 定义注解 @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) 阅读全文
posted @ 2025-04-06 19:44 漠孤烟 阅读(47) 评论(0) 推荐(0)
摘要: 1、注册表 cmd,输入regedit 2、依次展开 HKEY_CURRENT_USER\Software\kingsoft\Office\6.0\plugins\officespace\flogin 3、修改 enableForceLoginForFirstInstallDevice 修改为fal 阅读全文
posted @ 2025-03-30 10:22 漠孤烟 阅读(102) 评论(0) 推荐(0)
摘要: 配置host C:\Windows\System32\drivers\etc\hosts 127.0.0.1 windowsupdate.microsoft.com 127.0.0.1 download.windowsupdate.com 127.0.0.1 test.stats.update.mi 阅读全文
posted @ 2025-03-12 21:14 漠孤烟 阅读(6) 评论(0) 推荐(0)
摘要: 下载 https://www.sonatype.com/products/sonatype-nexus-oss-download 配置环境 解压后,配置INSTALL4J_HOME (JDK11的home目录),可以与已有jdk共存 export INSTALL4J_JAVA_HOME=/app/n 阅读全文
posted @ 2025-03-09 16:22 漠孤烟 阅读(70) 评论(0) 推荐(0)