Exiftool command not working from Jboss(Java) but working fine from console

Started by johncarter, July 08, 2015, 02:10:00 AM

Previous topic - Next topic

johncarter

Hi,

We are trying to add xmp data using below command:
exiftool -config XMP_METADATA.cfg -xmp-xmp:XMP_MC_PREFIX="TestValue" <inputImage>

Previously, above command is working fine in both Jboss (java program) and from console.

From last two days, command is not working from JBOSS and failing with below exception:
Exception in applyXMPMetadata: Cannot run program "exiftool": java.io.IOException: error=2, No such file or directory

Below is the exiftool installation location:
-bash-4.1$ which exiftool
/usr/local/bin/exiftool


Could anyone suggest what could be the possible cause?


Phil Harvey

Try running the exiftool command from the command line to see if that works.  If it does, then likely your Java environment has changed so that it can no longer find exiftool.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).


Phil Harvey

OK then.  Can you specify the full path to the exiftool executable in the Java code?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).