I saw this same error when I did an install on a new machine.  Adding the last line to the file did fix it. 

 

YOURS:      {JAVA} -classpath $CP Jhove -c ${JHOVE_HOME}/conf/jhove.conf $ARGS

MINE:      ${JAVA} -classpath $CP Jhove -c ${JHOVE_HOME}/conf/jhove.conf $ARGS

 

Looks like the only difference is your line doesn’t start with $.

 

Lynette

 

From: Kevin_Bowrin [mailto:Kevin_Bowrin@carleton.ca]
Sent: Tuesday, May 12, 2009 2:08 PM
To: fez-users@lists.sourceforge.net
Subject: [Fez-users] '/tmp/presmd_test.xml' Error

 

Hello everyone,

 

This is the last error that is occurring when I run a sanity check. Any ideas?

 

File  Jhove Result   = '/tmp/presmd_test.xml'  This file doesn't exist, check the path and the permissions so that webserver user can read the file (the webserver must have 'rx' permission on any parent directories as well as 'r' permission on the file)

 

Common problems with jhove are that the environment variables are not set correctly. Check that the jhove script has been edited as per the installation mannual, the last line must be changed # FOR LINUX: ${JAVA} -classpath $CP Jhove -c ${JHOVE_HOME}/conf/jhove.conf $ARGS # FOR WINDOWS: %JAVA% -classpath %CP% Jhove -c %JHOVE_HOME%/conf/jhove.conf %ARGS%

 

Running on Linux, here is my JHOVE executable:

 

 #!/bin/sh

 

########################################################################

# JHOVE - JSTOR/Harvard Object Validation Environment

# Copyright 2003-2005 by JSTOR and the President and Fellows of Harvard College

# JHOVE is made available under the GNU General Public License (see the

#... ..........

#       dir-file-or-uri Directory, file pathname or URI of formatted content

#

# Configuration constants:

 

JHOVE_HOME=/usr/local/jhove

 

JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun

JAVA=$JAVA_HOME/bin/java # Java interpreter

 

#XTRA_JARS=/users/stephen/xercesImpl.jar

EXTRA_JARS=              # Extra .jar files to add to CLASSPATH

 

# NOTE: Nothing below this line should be edited

########################################################################

 

CP=${JHOVE_HOME}/bin/JhoveApp.jar:${EXTRA_JARS}

 

# Retrieve a copy of all command line arguments to pass to the application.

 

ARGS=""

for ARG do

    ARGS="$ARGS $ARG"

done

 

# Set the CLASSPATH and invoke the Java loader.

#{JAVA} -classpath $CP Jhove $ARGS -x org.apache.xerces.parsers.SAXParser

{JAVA} -classpath $CP Jhove -c ${JHOVE_HOME}/conf/jhove.conf $ARGS

 

 

The configuration constraints are all correct, as far as I can tell. (JAVA_HOME, JHOVE_HOME, etc,)

The last line also seems to be correct.

 

What is the next step?

 

Thank you,

Kevin B.

Carleton University Library

Ottawa Ontario

Canada