Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

using jpedal pdf libraries within jJADE agent  RSS feed

Daniel Arnold
Posts: 9
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 - ). 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
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!