Hello,
i want to use the jreality pdfwriter in my java project, but i get a "ClassDefNotFound Exception" when i'm creating a new WriterPDF()-Object.
I'm using Java 6 in my project, is this the problem?
ClassDefNotFound Exception
Re: ClassDefNotFound Exception
I'm not the most qualified to answer questions about the pdf backend, but perhaps I can help move this forward.
It sounds like you have a class path problem. I'd recommend that you first run JRViewer (in Eclipse, run the class "de.jreality.plugin.JRViewer" as a Java application), load some geometry, and check that you can successfully export in pdf format (choose "File->Export->PDF"). If that works, then try cutting and pasting code from de.jreality.ui.viewerapp.actions.file.ExportPDF into your own code to see if you can get a functioning WriterPDF that way.
If you still get ClassNotFoundException, then I recommend you post again with more details about what your development environment is and a complete stack trace of the exception.
I don't think that using Java 6 should have anything to do with this problem.
It sounds like you have a class path problem. I'd recommend that you first run JRViewer (in Eclipse, run the class "de.jreality.plugin.JRViewer" as a Java application), load some geometry, and check that you can successfully export in pdf format (choose "File->Export->PDF"). If that works, then try cutting and pasting code from de.jreality.ui.viewerapp.actions.file.ExportPDF into your own code to see if you can get a functioning WriterPDF that way.
If you still get ClassNotFoundException, then I recommend you post again with more details about what your development environment is and a complete stack trace of the exception.
I don't think that using Java 6 should have anything to do with this problem.
jReality core developer