英文:
robovm and java SE compatibility
问题
在一开始,我认为RoboVM是一个完整的Java虚拟机,但在尝试后,我意识到它并不是。显然,RoboVM没有实现所有Java SE虚拟机的功能,但我找不到记录哪些功能它没有实现。
当我尝试将freemarker和itext集成到RoboVM时,我遇到了许多兼容性问题,例如缺少java.beans
包等。奇怪的是,它在编译时没有显示错误,只在iOS运行时才出现。
我找不到任何文档矩阵来描述RoboVM和Java SE(无论是Oracle还是OpenJDK)之间的实现差异(Java包)。我们是否实际上有这样的矩阵文档呢?
英文:
At the beginning, I thought robovm is a full Java VM, after I give it a try, realized it is not. Obviously robovm doesn't implement all the Java SE VM features, but what kind of features it doesn't implement, I can't find it documented somewhere.
I encounter many compatibility issue while I tried to integrate freemarker and itext into it. For example java.beans
package missing and (a lot more actually) etc. The weird things is, it doesn't show the error during compile time but only during iOS runtime.
I can't find any document matrix to describe the implementation difference (java packages) between robovm and Java SE (either Oracle or OpenJDK), do we actually have such matrix documented somewhere?
答案1
得分: 2
RoboVM(MobiVM)捆绑了Android 4.4运行时。并且Java RT Api仅限于4.4中的一个。正在进行工作,将Android 10/11的libcore引入RoboVM。RoboVM在编译期间显示有关缺少类的警告(作为幻像类消息),而不是错误。在Java运行时世界中,“类未找到”是正常情况。
英文:
RoboVM (MobiVM) bundles Android 4.4 runtime.
And Java RT Api is limited to one that was in 4.4.
There is work in progress to bring Android 10/11 libcore to RoboVM.
RoboVM shows warning about missing classes (as phantom class message) during compilation, not error. As class not found
it is normal case in Java runtime world.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论