英文:
Are java standard packages supported for Quarkus native image?
问题
我正在使用 Quarkus 构建一个应用程序。我正在使用 javax.xml.soap* 包以及许多其他位于 rt.jar 下的类。我的代码在使用标准 JVM 模式运行时没有错误。但他们说我不能使用这些库构建本机镜像。我没有 GraalVM 来尝试,并且使用免费版本构建本机镜像的过程非常耗时。实际上,没有足够好的文档来理解这是如何工作的。那么,我该如何在本机镜像中使用这些库呢? 提前致谢。
英文:
I'm building an app using quarkus. And im using javax.xml.soap* packages and many other classes which is located under rt.jar . My code is working without error while running standard JVM mode. But they said that i couldnt build a native image with those libraries.I dont have graalvm to try for it and the process of building native image is took very long with the free version. Actually there is no good enough documentation to understand how this works.So how can i use these libraries with the native image?<br><br> Thanks in advance.
答案1
得分: 2
Quarkus只是在AOT编译中使用GraalVM本机映像,为扩展中的库提供配置。因此,这不是关于Quarkus的问题,而是关于在本机映像中使用javax.xml.soap
。
可能在XML处理方面存在一些问题。GraalVM最近添加了对jaxb
的支持。
目前最好的做法是在github.com/oracle/graal/issues上开启一个问题,并描述发生了什么。问题会得到解决。
英文:
Quarkus is just using GraalVM native image for the AOT compilation providing the configurations for the libraries in the extensions. So this is not a question about Quarkus but using javax.xml.soap
in the native images.
There might be some issue with the xml processing. GraalVM recently added jaxb
support.
The best course of action currently is to open an issue at Quarkus is just using GraalVM native image for the AOT compilation so this is not a question about Quarkus but using javax.xml.soap
in the native images.
There might be issues with the xml processing classes when used in GraalVM native images. For example, GraalVM just recently added jaxb
support.
The best course of action currently is to open an issue at github.com/oracle/graal/issues and describe what is happening. And it'll be fixed.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论