| Adding PDFRenderder.jar to my Plug-In Project - Runtime Error [message #976678] |
Thu, 08 November 2012 14:21  |
James Teater Messages: 17 Registered: July 2011 |
Junior Member |
|
|
I am adding PDFRenderer.jar to my Plug-in project.
Here are the steps I used.
1. Downloaded PDFRenderer.jar
2. Created folder named lib in my Eclipse Plug-In Project
3. Copied PDFRenderer.jar to the lib folder
4. Went to Build Path -> Configure Build Path ->
Libraries Tab -> Add JARs -> Selected lib/PDFRenderder.jar file
5. Went to Runtime Tab in MANIFEST.MF
6. Click Add -> Selected lib/PDFRenderder.jar
7. Click New -> New Library Name -> entered .
8. Built the Project - No Errors
9. Export -> Deployable plug-ins and fragments -> Pick my plugin project name
created Project jar file in my Project Plug-in dir
10. Copied Project plug-in to my Teamcenter/plug-ins dir (Main Application)
11. When my application tries to a PDFRenderer command such as
PDFFile pdffile = new PDFFile(buf); - I get following runtime error.
org.eclipse.core.runtime - org.eclipse.ui - 0 - Unhandled event loop exception java.lang.NoClassDefFoundError: com/sun/pdfview/PDFFile
Is it a problem that I am trying to use a class from PDFRenderer.jar inside my Project plug-in?
|
|
|
|
|
| Re: Adding PDFRenderder.jar to my Plug-In Project - Runtime Error [message #981118 is a reply to message #977757] |
Mon, 12 November 2012 02:00  |
sumit singh Messages: 73 Registered: October 2012 Location: Bangalore |
Member |

|
|
Did you tried 1st one "Exporting package's" from above in my answer .
And answer of your question "close the pdf plug-in project without the errors in my project".
I think this can't be possible because your project required PDF.jar but if you'll close that plugin (created from PDF.jar) that how you will get that dependency.
I really don't want to have to push the pdf.jar to all my client machines.
Actually I doesn't fully understand that means , you have a project that required PDF.jar and you don't want to push it to your client.
than how your project will work..?
In my understanding if your project required PDF.jar then you have 2 option
1. Create plugin from PDF.jar and add as dependency to your project.
2. Add PDF.jar in to your lib folder in your project and export all the class for run time as i mention above(see screenshot).
[Updated on: Mon, 12 November 2012 02:03] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01821 seconds