cant get connected to internet while using InetAddress Class

I am new to java networking.I am trying to get InetAddress by function InetAddress.getByName("www.something.com") but it is not connecting to internet. I am using a proxy server to get connected to lan.I use jdk 1.5 as my enviroment.PLz guide me how to configure so that i can run these sort of programs on my system.

[324 byte] By [bharat_iiita] at [2007-10-3 2:59:01]
# 1
Does it resolve the domain name properly.What are the exceptions that you are getting?
LRMKa at 2007-7-14 20:48:35 > top of Java-index,Core,Core APIs...