Home » Eclipse Projects » Rich Client Platform (RCP) » NoClassDefFound for itext
NoClassDefFound for itext [message #460872] |
Sun, 31 December 2006 22:31  |
Eclipse User |
|
|
|
Originally posted by: jelgolfnut.gmail.com
I've been developing an RCP app and just added a class that uses the Itext
library. I created a plugin from the jar file, but when I run the app, it
shows NoClassDefFound for one of the Itext classes. I added the itext
plugin to the dependencies of my app and added the "registered" property
to the manifest for itext. Here are the files:
my app manifest file
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Work Journal
Bundle-SymbolicName: com.work.journal;singleton:=true
Bundle-Version: 1.0.0
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.forms,
org.eclipse.ui.console,
org.spring.springframework,
my.support.database,
com.lowagie.itext,
my.org.jfreechart.1.0.1
Eclipse-LazyStart: false
Eclipse-RegisterBuddy: org.spring.springframework, my.support.database,
com.lowagie.itext
here is the manifest for itext
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Itext Plug-in
Bundle-SymbolicName: com.lowagie.itext
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Localization: plugin
Export-Package: com.lowagie.bc.asn1,
com.lowagie.text,
com.lowagie.text.html,
com.lowagie.text.html.simpleparser,
com.lowagie.text.markup,
com.lowagie.text.pdf,
com.lowagie.text.pdf.codec,
com.lowagie.text.pdf.codec.postscript,
com.lowagie.text.pdf.codec.wmf,
com.lowagie.text.pdf.events,
com.lowagie.text.pdf.fonts,
com.lowagie.text.pdf.hyphenation,
com.lowagie.text.rtf,
com.lowagie.text.rtf.document,
com.lowagie.text.rtf.document.output,
com.lowagie.text.rtf.field,
com.lowagie.text.rtf.graphic,
com.lowagie.text.rtf.headerfooter,
com.lowagie.text.rtf.list,
com.lowagie.text.rtf.style,
com.lowagie.text.rtf.table,
com.lowagie.text.rtf.text,
com.lowagie.text.xml,
com.lowagie.text.xml.xmp,
com.lowagie.tools,
com.lowagie.tools.arguments,
com.lowagie.tools.plugins,
com.lowagie.tools.plugins.treeview
Eclipse-BuddyPolicy: registered
Any thoughts/suggestions? The itext class is referenced from an action
that is declared programmatically (if that makes a difference). After
beating my head against the RCP for a few days, I finally started making
great headway, but this has been another bump in the road so any help will
be much appreciated.
Thanks
|
|
| |
Re: NoClassDefFound for itext (Never mind) [message #460893 is a reply to message #460874] |
Mon, 01 January 2007 17:00  |
Eclipse User |
|
|
|
Chances are, you were bitten by a bug in PDE that doesn't correctly update your manifests when they've been changed after creating a launch configuration. If you had deleted the launch configuration and re-created it, the problem would have gone away.
Best solution is to make sure your launch configurations have the 'clean' option to get rid of any cached metadata state on launch.
Alex.
|
|
|
Goto Forum:
Current Time: Mon Mar 17 14:55:05 EDT 2025
Powered by FUDForum. Page generated in 0.03727 seconds
|