: 어떤 이유로(비행 접시 - xhtmlrenderer)
ikvmc core-renderer.jar
을, IKVMC는 java.lang.NoClassDefFoundError: com.lowagie.text.DocumentException
을주고, 나에게 core-renderer.exe
그래서 난 core-renderer.dll
에 이름이 EXE 파일을 준 내 어셈블리에 추가하고 몇 가지 이유를 들어
using java.io;
using java.lang;
using com.lowagie.text;
using org.xhtmlrenderer.pdf;
namespace flying_saucer
{
class FlyingSaucerApp
{
static void Main(string[] args)
{
// This works
DocumentException dummy = new DocumentException();
ITextRenderer renderer = new ITextRenderer();
// For some reason, this raises NoClassDefFoundError
renderer.setDocument(File("hello.xhtml").toURI().toURL().toString());
}
}
}
멀리 해킹. 실현 한
DocumentException
은
ITextRender()
일지도 모르지만, 이미 포함되어 있습니다
com.lowagie.text
, 어떤 아이디어?
명령을 시도했지만 core-renderer.dll은 알 수없는 파일 형식입니다. – Drahcir
분명히, 나는 급하게 대답했습니다. : p 변경 했었지만 분명히 인수가 'jar'여야합니다. 파일 lol – kizzx2
+1 이것은 많은 노력을 덜어주었습니다. 감사! –