I wanted to use the Flying Saucer Java API in .NET, so I tried using IKVM to convert the Flying Saucer library :
ikvmc core-renderer.jar
For some reason, IKVMC gave me an exe core-renderer.exe, so I renamed it to core-renderer.dll, added it to my builds and hacked
using java.io;
using java.lang;
using com.lowagie.text;
using org.xhtmlrenderer.pdf;
namespace flying_saucer
{
class FlyingSaucerApp
{
static void Main(string[] args)
{
DocumentException dummy = new DocumentException();
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(File("hello.xhtml").toURI().toURL().toString());
}
}
}
For some reason he gives java.lang.NoClassDefFoundError: com.lowagie.text.DocumentException. I realized that there DocumentExceptionmight be something ITextRender(), but have I already included com.lowagie.textany ideas?
source
share