jhove icon indicating copy to clipboard operation
jhove copied to clipboard

module class value in jhove.conf when running jhove in intellij

Open asciim0 opened this issue 5 years ago • 4 comments

I'm trying to learn more about the internal working of JHOVE and followed this guide about how to set up JHOVE running in a debugger: https://www.dpoc.ac.uk/2018/08/09/jhove-running-in-a-debugger/ I ran into a problem setting the correct class values in the jhove.conf file. The original value, e.g. edu.harvard.hul.ois.jhove.module.PdfModule result in an error:

#

Cannot instantiate module: edu.harvard.hul.ois.jhove.module.PdfModule edu.harvard.hul.ois.jhove.JhoveException: Cannot instantiate module: edu.harvard.hul.ois.jhove.module.PdfModule at edu.harvard.hul.ois.jhove.JhoveBase.init(JhoveBase.java:319) at Jhove.main(Jhove.java:240)

#

Could anyone let me know what I need to set the module class value to to make it work?

asciim0 avatar Oct 02 '19 18:10 asciim0

Hi @asciim0, I suspect that it's not the value but rather the fact that the class can't be found for some reason. To confirm, you're using the IntelliJ IDE? I'm an Eclipse user myself but I can try setting this up myself to see if I can replicate it. That won't be until next week though.

carlwilson avatar Oct 02 '19 22:10 carlwilson

Yup, I'm using IntelliJ IDEA Community Edition (2019.2.3). Thanks!

asciim0 avatar Oct 04 '19 08:10 asciim0

Hi Michelle,

I get the same error on the command line if I use something like java -jar bin/jhove-apps-1.22.1.jar -c conf/jhove.conf. In version 1.20 this worked for me. Now you can use the jhove.bat script to make it work. For example for the Pdf it is jhove.bat -m PDF-hul

Sam

samalloing avatar Oct 18 '19 14:10 samalloing