PDFBox-使用IKVM构建.NET的最新版本 [英] PDFBox - Building the latest version for .NET using IKVM

查看:106
本文介绍了PDFBox-使用IKVM构建.NET的最新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想构建最新版本的PDFBox( http://pdfbox.apache. org/userguide/dot_net.html )在我的.NET项目中使用.

I would like to build the latest version of PDFBox (http://pdfbox.apache.org/userguide/dot_net.html) for use within my .NET project.

我对Java没有任何经验,但是我正在使用这里定义的步骤: http://www.ikvm.net/userguide/tutorial.html

I have no experience with Java whatsoever but I am using the steps defined here: http://www.ikvm.net/userguide/tutorial.html

我正在使用以下版本:
-IKVM(0.42.0.6)
-PDFBox(1.2.1)JAR文件

I am using the following versions:
- IKVM (0.42.0.6)
- PDFBox (1.2.1) JAR file

问题是,当我尝试创建DLL时,会显示一系列错误消息-即"java.lang.NoClassDefFoundError".我在这里面临与作者相同的问题(

The problem is that when I try to create the DLL a series of error messages are displayed - i.e. "java.lang.NoClassDefFoundError". I am facing the same problem as the author here (How to use PDFBox 1.0 in .net / C# environment using IKVM) and tried the fix suggested - "lkvmc.exe -target:library -out:"[Output Path]\netpdfbox.dll" "[PDFBox Path]*.jar" but the result is the same - the error messages are still displayed.

预先感谢

乔斯

推荐答案

您必须在类路径中包含所有需要的* .jar文件.我翻译了具有相同设置的最新版本,主要问题是没有默认的日志类,因此我为log4j包含了jar,看来现在可以正常工作了,但我只是在提取文本.而0.7.3版在某些PDF文件上引发了异常,并且此新版本在相同的PDF文件上可以正常工作.您可以从以下位置下载dll:

You have to include all needed *.jar files in classpath. I translated latest version with same setup and main problem was that there were no default log class, so I included jar's for log4j and it seems that now is working OK, but I was only doing text extraction. And version 0.7.3 was throwing exceptions on some PDF files and this new build works OK on same PDF files. You can download dll's from :

http://www.antoniob.com/pdfbox-121 -for-net-binaries.aspx

这篇关于PDFBox-使用IKVM构建.NET的最新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆