Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » NoClassDefFound for itext
NoClassDefFound for itext [message #460872] Mon, 01 January 2007 03:31 Go to next message
Eclipse UserFriend
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 #460874 is a reply to message #460872] Mon, 01 January 2007 03:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jelgolfnut.gmail.com

I recreated the the plugin, but gave the itext plugin a different name
(my.com.itext) and the problem went away.
Re: NoClassDefFound for itext (Never mind) [message #460893 is a reply to message #460874] Mon, 01 January 2007 22:00 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
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.
Previous Topic:RCP for server side, please comment
Next Topic:Product Export Problem
Goto Forum:
  


Current Time: Fri Apr 26 05:52:39 GMT 2024

Powered by FUDForum. Page generated in 0.02990 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top