Fixing Java UnknownHostException on Ubuntu

On Ubuntu, on fresh installs, I frequently tend to get UnknownHostException(s) while running Java such as below.

INFO: I/O exception ( caught when processing request:

This normally happens for me when running 32-bit Java on 64-bit Ubuntu. The solution is simply to install lib32nss-mdns as follows and then retry.

sudo apt-get install lib32nss-mdns

Sources (ubuntu bug, ehow).

3 thoughts on “Fixing Java UnknownHostException on Ubuntu

  1. Pingback: [Spring Integration Series - Getting started] by Dhruba Bandopadhyay

Leave a Reply