How is it possible to run a java game like Minecraft behind a SSH tunnel (SOCKS proxy). I configured the proxy in Oneiric in the system settings and Ubuntu One, Pidgin, and so on works. But not the java game Minecraft. What can I do?
This solution did not work:
java -Dhttp.proxyHost=HOST -Dhttp.proxyPort=PORT -Dhttps.proxyHost=HOST -Dhttps.proxyPort=PORT -Xmx1000m -jar XXXXXXX.jar
Can anyone help me?

-DsocksProxyHost=HOST? – Lekensteyn Apr 23 '12 at 18:06