使用 IKVM.Net 将 Apache POI .jar 转换为 .dll [英] Convert Apache POI .jar to .dll using IKVM.Net
问题描述
我正在尝试将 Apache poi .jar 转换为 .dll .我使用下面的脚本进行转换.但是,在那之后我收到了很多警告和错误Invalid option -resource:poi-3.8-20120326.dll.这是我使用的脚本.
I'm trying to convert Apache poi .jar to .dll . I used the script below to convert. However I'm getting lot of warnings and error Invalid option -resource:poi-3.8-20120326.dll after that. Here's the script i used.
ikvmc -target:library poi-ooxml-schemas-3.8-20120326.jar
ikvmc -target:library poi-3.8-20120326.jar
ikvmc -target:library -resource:poi-3.8-20120326.dll poi-scratchpad-3.8-20120326.jar
ikvmc -target:library -resource:poi-3.8-20120326.dll poi-ooxml-schemas-3.8-20120326.dll poi-scratchpad-3.8-20120326.dll poi-ooxml-3.8-20120326.jar
ikvmc -target:library -resource:poi-3.8-20120326.dll poi-ooxml-3.8-20120326.dll poi-excelant-3.8-20120326.jar
这是使用 IKVM.Net 的正确方法吗?如果不是,那么执行此操作的正确脚本是什么.
Is this correct way to use IKVM.Net . If not what is the correct script to do this.
推荐答案
我刚刚完成了一个项目,在该项目中我使用 IKVM 0.46.0.1 成功转换并使用了 Apache POI 3.9.转换后的 DLL 集支持 2007 年之前和 2007 年之后的 Microsoft Office 格式.
I just completed a project where I have successfully converted and used Apache POI 3.9 using IKVM 0.46.0.1. The converted set of DLLs support pre 2007 and post 2007 Microsoft Office formats.
先决条件:
下载 POI 3.9 并将所有 JAR 文件复制到一个目录中下载 IKVM(我使用的是 0.46.0.1 版本)以下命令(在所有 POI JAR 所在的同一目录中的 Windows 7 命令行中运行)对我有用:
Download POI 3.9 and copy all the JAR files into one directory Download IKVM (I used version 0.46.0.1) The following commands (run in Windows 7 command line in the same directory where all the POI JARs are) did the trick for me:
ikvmc -target:library xmlbeans-2.3.0.jar
ikvmc -target:library stax-api-1.0.1.jar
ikvmc poi-ooxml-schemas-3.9-20121203.jar -target:library -reference:xmlbeans-2.3.0.dll -reference:stax-api-1.0.1.dll
ikvmc -target:library log4j-1.2.13.jar
ikvmc -target:library commons-logging-1.1.jar
ikvmc -target:library commons-codec-1.5.jar
ikvmc poi-3.9-20121203.jar -target:library -reference:log4j-1.2.13.dll -reference:commons-logging-1.1.dll -reference:commons-codec-1.5.dll
ikvmc -target:library dom4j-1.6.1.jar
ikvmc poi-ooxml-3.9-20121203.jar -target:library -reference:poi-3.9-20121203.dll -reference:poi-ooxml-schemas-3.9-20121203.dll -reference:dom4j-1.6.1.dll -reference:xmlbeans-2.3.0.dll
希望有帮助.
这篇关于使用 IKVM.Net 将 Apache POI .jar 转换为 .dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!