File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes using jpedal pdf libraries within jJADE agent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "using jpedal pdf libraries within jJADE agent" Watch "using jpedal pdf libraries within jJADE agent" New topic
Author

using jpedal pdf libraries within jJADE agent

Daniel Arnold
Greenhorn

Joined: Sep 16, 2012
Posts: 9

Hi,

I am running a simple multi-agent framework using JADE and wanted my agent behaviour to run a text search in a directory of pdf files. The agents work fine (There are two agents, a main one that creates and passes folder location and query string to the secondary agent) and the text search (using JPedal) works (modified code from FindTextInRectangle.java - www.idrsolutions.com/how-to-search-a-pdf-file-for-text/ ). My problem comes when merging the two. I managed to get it working to the point where when the secondary agent launches, checks whether pdf files are present and at that point should start the search. When i added the other JPedal classes that index and decode the pdf files, the second agent fails to launch.

I get the following error when the secondary agent is being created "An undeclared exception was thrown [nested java.lang.NoClassDefFoundError: org/jpedal/exception/PdfException". I know generally what java.lang.NoClassDefFoundError error is but failed to identify where I made the blunder:



Thanks. Any assistance is greatly appreciated


"May the source be with you"
 
jQuery in Action, 2nd edition
 
subject: using jpedal pdf libraries within jJADE agent
 
Similar Threads
New College Project
Help with 2 Dimensional Array
problem with JDialog
How to make rectangle drawn to be vissible when a new rectangle is drawn
Calculating the distance between two points problem