ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: johncarter on July 08, 2015, 02:10:00 AM

Title: Exiftool command not working from Jboss(Java) but working fine from console
Post by: johncarter on July 08, 2015, 02:10:00 AM
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?

Title: Re: Exiftool command not working from Jboss(Java) but working fine from console
Post by: Phil Harvey on July 08, 2015, 06:32:11 AM
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
Title: Re: Exiftool command not working from Jboss(Java) but working fine from console
Post by: johncarter on July 08, 2015, 07:40:35 AM
Thanks Phil.

From command line it's working.
Title: Re: Exiftool command not working from Jboss(Java) but working fine from console
Post by: Phil Harvey on July 08, 2015, 07:43:11 AM
OK then.  Can you specify the full path to the exiftool executable in the Java code?

- Phil