On the Debian distro, use apt-get like so:

sudo apt-get install openjdk-6-jdk libjna-java