Sure. I just finished writing an Eclipse install document. We head to the Control Panel and remove it with Add/Remove Programs there.
I mean something that comes from Sun/Oracle to remove the previous version of Java
Like now when Java 6 version 22 is out. Something to remove Java 6 version 21