removes use of proprietary com.sun package classes.

Using these com.sun classes causes compiler warnings in JDK 7, also they may not be available in other JVM implementations