use following command
debian1:/etc# grep -r "DisallowTCP" *
gdm/factory-gdm.conf
isallowTCP=true
gdm/factory-gdm.conf:# at the security/DisallowTCP setting!
gdm/gdm.conf
isallowTCP=true
gdm/gdm.conf:# at the security/DisallowTCP setting!
grep: rc2.d/K77ntp-simple: No such file or directory
grep: rc3.d/K77ntp-simple: No such file or directory
X11/gdm/factory-gdm.conf
isallowTCP=true
X11/gdm/factory-gdm.conf:# at the security/DisallowTCP setting!
X11/gdm/gdm.conf
isallowTCP=true
X11/gdm/gdm.conf:# at the security/DisallowTCP setting!
Change all the DisallowTCP=true to false then restart x server and u can run any java gui