ClassDefNotFound Exception

Have jReality programming problems or questions? Post them here.
Post Reply
argo2185
Posts: 16
Joined: Thu 4. Mar 2010, 14:24

ClassDefNotFound Exception

Post by argo2185 » Tue 29. Jun 2010, 18:07

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?

User avatar
gunn
Posts: 323
Joined: Thu 14. Dec 2006, 09:56
Location: TU Berlin
Contact:

Re: ClassDefNotFound Exception

Post by gunn » Sun 4. Jul 2010, 10:08

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.
jReality core developer

Post Reply