OpenJDK System Proxy
By default, OpenJDK, the default Java virtual machine used by Debian and Ubuntu, does not obey system-wide proxy settings.
To rectify this, edit /etc/java-6-openjdk/net.properties, and change
java.net.useSystemProxies=false
to true.