我想转换的Apache POI的.jar来为.dll。我用下面的脚本进行转换。但是我收到很多的警告和错误的的选项无效-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的支持pre 2007年和2007年后的微软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.
prerequisites:
Prerequisites:
下载POI 3.9和所有的JAR文件复制到一个目录 下载IKVM(我使用0.46.0.1版) 下面的命令(在同一目录中运行在Windows 7中的命令行,所有的POI罐子)的伎俩对我来说:
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
希望它帮助。
Hope it helps.