Java is supposed to be \"write once, run anywhere\" and it really can be, but in some cases it turns into \"write once, debug everywhere\".
What are the most common
Using classes from the com.sun.*
packages that come with the Sun JDK.
Few from UI area:
(These are not Java specific though)