The only really available support for raw sockets in Java standard library seems the InetAddress.isReachable() that may do ICMP ping if permitted. This is really not much and probably even not really a raw socket, just one more protocol.
For other types of raw communication I would recommend to use Berkley sockets under Linux (root rights required) through some JNI - based wrapper.