Unable to locate tools.jar

I am a rank newbie trying to use djigzo with an open source project I work on
with WorldVistA (http://worldvista.org) for connecting WorldVistA EHR with the
National Health Information Network using the NHIN Direct Project Gateway
(http://wiki.directproject.org/).

Thank you very much for making your code open source. It appears that it will
be right on the money for solving a problem we are having and have expended a
lot of energy trying to solve.

I am in the process of installing djigzo 2.0.0.7 on a Debian machine and when
running the sudo -u djigzo ant command encountered the error above.

I tried to find a way to search the archives for a similar thread but I don't
see a search function.

Do I need to do something to address this?

This is the full output with a check of Java alternatives on the machine at
the end.

I look forward to a reply.

Thank you!

···

***********
mail2:/usr/local/djigzo# sudo -u djigzo ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-
openjdk/lib/tools.jar
Buildfile: /usr/local/djigzo/build.xml

create-symlinks:
   [delete] Deleting directory /usr/local/djigzo/james-2.3.1/apps/james/SAR-
INF/lib
    [mkdir] Created dir: /usr/local/djigzo/james-2.3.1/apps/james/SAR-INF/lib

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

make-scripts-executable:

create-sunjceprovider-softlink:
     [echo] create symlink to /usr/lib/jvm/java-6-
openjdk/jre/lib/ext/sunjce_provider.jar in james-2.3.1/lib

init-wrapper:

init:
     [echo] Trying to load 'wrapper.dist.Linux.i386.properties'
     [echo] wrapper.dist.tar: wrapper-linux-x86-32-3.4.1.tar.gz
    [untar] Expanding: /usr/local/djigzo/wrapper/wrapper-linux-
x86-32-3.4.1.tar.gz into /usr/local/djigzo/wrapper

create-james-config-symlinks:
    [mkdir] Created dir: /usr/local/djigzo/james-2.3.1/apps/james/conf

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

init:

BUILD SUCCESSFUL
Total time: 53 seconds

mail2:/usr/local/djigzo# sudo update-alternatives --config java
There is 1 choice for the alternative java (providing /usr/bin/java).

  Selection Path Priority Status
------------------------------------------------------------
  0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
* 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual
mode

Press enter to keep the current choice[*], or type selection number:

--
Nancy Anthracite

Is this relevant? I go this earlier in the installation.

mail2:/etc/apt# update-java-alternatives -s java-6-openjdk
update-alternatives: error: no alternatives for appletviewer.
update-alternatives: error: no alternatives for apt.
update-alternatives: error: no alternatives for extcheck.
update-alternatives: error: no alternatives for idlj.
update-alternatives: error: no alternatives for jar.
update-alternatives: error: no alternatives for jarsigner.
update-alternatives: error: no alternatives for javac.
update-alternatives: error: no alternatives for javadoc.
update-alternatives: error: no alternatives for javah.
update-alternatives: error: no alternatives for javap.
update-alternatives: error: no alternatives for jconsole.
update-alternatives: error: no alternatives for jdb.
update-alternatives: error: no alternatives for jhat.
update-alternatives: error: no alternatives for jinfo.
update-alternatives: error: no alternatives for jmap.
update-alternatives: error: no alternatives for jps.
update-alternatives: error: no alternatives for jrunscript.
update-alternatives: error: no alternatives for jsadebugd.
update-alternatives: error: no alternatives for jstack.
update-alternatives: error: no alternatives for jstat.
update-alternatives: error: no alternatives for jstatd.
update-alternatives: error: no alternatives for mozilla-javaplugin.so.
update-alternatives: error: no alternatives for native2ascii.
update-alternatives: error: no alternatives for rmic.
update-alternatives: error: no alternatives for schemagen.
update-alternatives: error: no alternatives for serialver.
update-alternatives: error: no alternatives for wsgen.
update-alternatives: error: no alternatives for wsimport.
update-alternatives: error: no alternatives for xjc.
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/appletviewer
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/apt
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/extcheck
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/idlj
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jarsigner
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jar
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/javac
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/javadoc
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/javah
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/javap
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jconsole
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jdb
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jhat
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jinfo
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jmap
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jps
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jrunscript
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jsadebugd
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jstack
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jstatd
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/jstat
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/native2ascii
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/rmic
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/schemagen
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/serialver
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/wsgen
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/wsimport
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/xjc
update-java-alternatives: plugin alternative does not exist:
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so

···

On Sunday, March 13, 2011, Nancy Anthracite wrote:

I am a rank newbie trying to use djigzo with an open source project I work
on with WorldVistA (http://worldvista.org) for connecting WorldVistA EHR
with the National Health Information Network using the NHIN Direct
Project Gateway (http://wiki.directproject.org/).

Thank you very much for making your code open source. It appears that it
will be right on the money for solving a problem we are having and have
expended a lot of energy trying to solve.

I am in the process of installing djigzo 2.0.0.7 on a Debian machine and
when running the sudo -u djigzo ant command encountered the error above.

I tried to find a way to search the archives for a similar thread but I
don't see a search function.

Do I need to do something to address this?

This is the full output with a check of Java alternatives on the machine at
the end.

I look forward to a reply.

Thank you!
***********
mail2:/usr/local/djigzo# sudo -u djigzo ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-
openjdk/lib/tools.jar
Buildfile: /usr/local/djigzo/build.xml

create-symlinks:
   [delete] Deleting directory
/usr/local/djigzo/james-2.3.1/apps/james/SAR- INF/lib
    [mkdir] Created dir:
/usr/local/djigzo/james-2.3.1/apps/james/SAR-INF/lib

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

create-symlink:

make-scripts-executable:

create-sunjceprovider-softlink:
     [echo] create symlink to /usr/lib/jvm/java-6-
openjdk/jre/lib/ext/sunjce_provider.jar in james-2.3.1/lib

init-wrapper:

init:
     [echo] Trying to load 'wrapper.dist.Linux.i386.properties'
     [echo] wrapper.dist.tar: wrapper-linux-x86-32-3.4.1.tar.gz
    [untar] Expanding: /usr/local/djigzo/wrapper/wrapper-linux-
x86-32-3.4.1.tar.gz into /usr/local/djigzo/wrapper

create-james-config-symlinks:
    [mkdir] Created dir: /usr/local/djigzo/james-2.3.1/apps/james/conf

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

symlink-overwrite:

init:

BUILD SUCCESSFUL
Total time: 53 seconds

mail2:/usr/local/djigzo# sudo update-alternatives --config java
There is 1 choice for the alternative java (providing /usr/bin/java).

  Selection Path Priority Status
------------------------------------------------------------
  0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto
mode * 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061
manual mode

Press enter to keep the current choice[*], or type selection number:

--
Nancy Anthracite

I am a rank newbie trying to use djigzo with an open source project I work on
with WorldVistA (http://worldvista.org) for connecting WorldVistA EHR with the
National Health Information Network using the NHIN Direct Project Gateway
(http://wiki.directproject.org/).

Thank you very much for making your code open source. It appears that it will
be right on the money for solving a problem we are having and have expended a
lot of energy trying to solve.

I am in the process of installing djigzo 2.0.0.7 on a Debian machine and when
running the sudo -u djigzo ant command encountered the error above.

I tried to find a way to search the archives for a similar thread but I don't
see a search function.

Do I need to do something to address this?

This is the full output with a check of Java alternatives on the machine at
the end.

I look forward to a reply.

Hi Nancy,

Unable to locate tools.jar. Expected to find it in /usr/lib
/jvm/java-6-openjdk/lib/tools.jar

This is just a warning and can be ignored. The warning is issued if the
"OpenJDK Development Kit" is not installed. Since tools.jar is not
required by Djigzo you can ignore it. Only if you need to recompile
Djigzo, you need the "OpenJDK Development Kit". I will add a note about
it in the documentation.

Since you are installing Djigzo on Debian, is there any particular
reason you didn't use the Debian packages?

Kind regards,

Martijn Brinkers

···

On 03/14/2011 01:02 AM, Nancy Anthracite wrote:

--
Djigzo open source email encryption

Is this relevant? I go this earlier in the installation.

mail2:/etc/apt# update-java-alternatives -s java-6-openjdk
update-alternatives: error: no alternatives for appletviewer.
update-alternatives: error: no alternatives for apt.
update-alternatives: error: no alternatives for extcheck.
update-alternatives: error: no alternatives for idlj.

[SNIP]

openjdk/bin/wsimport
update-java-alternatives: jdk alternative does not exist: /usr/lib/jvm/java-6-
openjdk/bin/xjc
update-java-alternatives: plugin alternative does not exist:
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so

These are just warnings that OpenJDK does not support some alternatives
for some Java applications. These can be ignored since they are not used
(like appletviewer etc.).

Djigzo should work without these alternatives.

Kind regards,

Martijn Brinkers

···

On 03/14/2011 01:18 AM, Nancy Anthracite wrote:

--
Djigzo open source email encryption

The Debian installation instructions said to use the tgz files, and the
packages I thought might be for only Ubuntu, so I followed the instructions
using the tgz files. I am having some trouble, mainly because I couldn't cut
and paste the commands I suspect, so maybe I should just go back and start
over with the package files to see if I can straighten it out.

···

On Monday, March 14, 2011, Martijn Brinkers wrote:

On 03/14/2011 01:02 AM, Nancy Anthracite wrote:
> I am a rank newbie trying to use djigzo with an open source project I
> work on with WorldVistA (http://worldvista.org) for connecting
> WorldVistA EHR with the National Health Information Network using the
> NHIN Direct Project Gateway (http://wiki.directproject.org/).
>
> Thank you very much for making your code open source. It appears that it
> will be right on the money for solving a problem we are having and have
> expended a lot of energy trying to solve.
>
> I am in the process of installing djigzo 2.0.0.7 on a Debian machine and
> when running the sudo -u djigzo ant command encountered the error above.
>
> I tried to find a way to search the archives for a similar thread but I
> don't see a search function.
>
> Do I need to do something to address this?
>
> This is the full output with a check of Java alternatives on the machine
> at the end.
>
> I look forward to a reply.

Hi Nancy,

> Unable to locate tools.jar. Expected to find it in /usr/lib
> /jvm/java-6-openjdk/lib/tools.jar

This is just a warning and can be ignored. The warning is issued if the
"OpenJDK Development Kit" is not installed. Since tools.jar is not
required by Djigzo you can ignore it. Only if you need to recompile
Djigzo, you need the "OpenJDK Development Kit". I will add a note about
it in the documentation.

Since you are installing Djigzo on Debian, is there any particular
reason you didn't use the Debian packages?

Kind regards,

Martijn Brinkers

--
Nancy Anthracite

Thanks!

···

On Monday, March 14, 2011, Martijn Brinkers wrote:

On 03/14/2011 01:18 AM, Nancy Anthracite wrote:
> Is this relevant? I go this earlier in the installation.
>
> mail2:/etc/apt# update-java-alternatives -s java-6-openjdk
> update-alternatives: error: no alternatives for appletviewer.
> update-alternatives: error: no alternatives for apt.
> update-alternatives: error: no alternatives for extcheck.
> update-alternatives: error: no alternatives for idlj.

[SNIP]

> openjdk/bin/wsimport
> update-java-alternatives: jdk alternative does not exist:
> /usr/lib/jvm/java-6- openjdk/bin/xjc
> update-java-alternatives: plugin alternative does not exist:
> /usr/lib/jvm/java-6-openjdk/jre/lib/i386/IcedTeaPlugin.so

These are just warnings that OpenJDK does not support some alternatives
for some Java applications. These can be ignored since they are not used
(like appletviewer etc.).

Djigzo should work without these alternatives.

Kind regards,

Martijn Brinkers

--
Nancy Anthracite

The Debian installation instructions said to use the tgz files, and the
packages I thought might be for only Ubuntu, so I followed the instructions
using the tgz files.

Can you remember where you have read this? It might be a mistake in the
documentation.

The quick installation guide explains how to install Djigzo on Debian
with the .deb packages. I suggest you first start with the quick
installation guide to see whether you can install Djigzo using the
Debian packages.

I am having some trouble, mainly because I couldn't cut

and paste the commands I suspect, so maybe I should just go back and start
over with the package files to see if I can straighten it out.

I have tested the copy-and-paste functionality on the PDF reader that
comes with Ubuntu and with Acrobat Reader. Which PDF reader are you using?

Kind regards,

Martijn

···

On 03/14/2011 01:40 PM, Nancy Anthracite wrote:

--
Djigzo open source email encryption

Yes, I used the long form of the instructions and it is on the bottom of page
4.

Do you think I can go back and put the .deb files in right on top of my messed
up installation and straighten it out, or should I just uninstall everything
and start over if I can't find my mistake?

···

On Monday, March 14, 2011, Martijn Brinkers wrote:

On 03/14/2011 01:40 PM, Nancy Anthracite wrote:
> The Debian installation instructions said to use the tgz files, and the
> packages I thought might be for only Ubuntu, so I followed the
> instructions using the tgz files.

Can you remember where you have read this? It might be a mistake in the
documentation.

The quick installation guide explains how to install Djigzo on Debian
with the .deb packages. I suggest you first start with the quick
installation guide to see whether you can install Djigzo using the
Debian packages.

I am having some trouble, mainly because I couldn't cut

> and paste the commands I suspect, so maybe I should just go back and
> start over with the package files to see if I can straighten it out.

I have tested the copy-and-paste functionality on the PDF reader that
comes with Ubuntu and with Acrobat Reader. Which PDF reader are you using?

Kind regards,

Martijn

--
Nancy Anthracite

Yes, I used the long form of the instructions and it is on the bottom

of page

4.

Do you think I can go back and put the .deb files in right on top of

my messed

up installation and straighten it out, or should I just uninstall

everything

and start over if I can't find my mistake?

It should be possible to install the Debian packages next to the manual
installed packages because the Debian packages are installed in
/usr/share whereas the manually installed packages are installed in
/usr/local.

There can however be only one startup script (/etc/init.d/djigzo) but I
think if you already added that startup script manually, it will be
overwritten by the debian installer.

Kind regards,

Martijn

The Debian installation instructions said to use the tgz files, and the
packages I thought might be for only Ubuntu, so I followed the
instructions using the tgz files.

Can you remember where you have read this? It might be a mistake in the
documentation.

The quick installation guide explains how to install Djigzo on Debian
with the .deb packages. I suggest you first start with the quick
installation guide to see whether you can install Djigzo using the
Debian packages.

I am having some trouble, mainly because I couldn't cut

and paste the commands I suspect, so maybe I should just go back and
start over with the package files to see if I can straighten it out.

I have tested the copy-and-paste functionality on the PDF reader that
comes with Ubuntu and with Acrobat Reader. Which PDF reader are you

using?

···

On 03/14/2011 01:55 PM, Nancy Anthracite wrote:

On Monday, March 14, 2011, Martijn Brinkers wrote:

On 03/14/2011 01:40 PM, Nancy Anthracite wrote:

Kind regards,

Martijn

--
Djigzo open source email encryption

OK, I will give it a go and see after I take one more look-see to see if I can
find my mistake in the log I saved.

···

On Monday, March 14, 2011, Martijn Brinkers wrote:

On 03/14/2011 01:55 PM, Nancy Anthracite wrote:
> Yes, I used the long form of the instructions and it is on the bottom

of page

> 4.
>
> Do you think I can go back and put the .deb files in right on top of

my messed

> up installation and straighten it out, or should I just uninstall

everything

> and start over if I can't find my mistake?

It should be possible to install the Debian packages next to the manual
installed packages because the Debian packages are installed in
/usr/share whereas the manually installed packages are installed in
/usr/local.

There can however be only one startup script (/etc/init.d/djigzo) but I
think if you already added that startup script manually, it will be
overwritten by the debian installer.

Kind regards,

Martijn

> On Monday, March 14, 2011, Martijn Brinkers wrote:
>> On 03/14/2011 01:40 PM, Nancy Anthracite wrote:
>>> The Debian installation instructions said to use the tgz files, and the
>>> packages I thought might be for only Ubuntu, so I followed the
>>> instructions using the tgz files.
>>
>> Can you remember where you have read this? It might be a mistake in the
>> documentation.
>>
>> The quick installation guide explains how to install Djigzo on Debian
>> with the .deb packages. I suggest you first start with the quick
>> installation guide to see whether you can install Djigzo using the
>> Debian packages.
>>
>> I am having some trouble, mainly because I couldn't cut
>>
>>> and paste the commands I suspect, so maybe I should just go back and
>>> start over with the package files to see if I can straighten it out.
>>
>> I have tested the copy-and-paste functionality on the PDF reader that
>> comes with Ubuntu and with Acrobat Reader. Which PDF reader are you

using?

>> Kind regards,
>>
>> Martijn

--
Nancy Anthracite