On 2009-06-18, th_wm <[email protected]> wrote:

> I learned, that the working directory of jarsigner.exe had to be configured
> in the PATH environment variable (of Windows XP Prof.); afterwards the task
> run successfully.

The task should find jarsigner.exe if it is "in the well known place"
provided by the JDK.

Ant searches for it in ${java.home}/../bin and ${java.home}/bin - for
some reason your java.home system property (usually set by Java
itself) is not pointing to a Java installation that would follow the
exected layout (in most cases java.home points to $JAVA_HOME/jre).

> Is there an option or a way to configure the working directory of
> the jarsigner command within Eclipse to avoid putting the working
> directory into the system PATH of the OS; if yes, how?

Find out why java.home seems to be pointing to the wrong place.

Ant's current trunk (and thus Ant 1.8.0 when it is ready to be
released) adds an executable attribute to the task so you could
specify the path inside your build file (using a property to remain
portable).  See https://issues.apache.org/bugzilla/show_bug.cgi?id=39189

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to