At first, it sounds strange. But for collection class, it might work.
You can give it a try by downloading Java 2's source code and compile java.util.TreeMap in Java 1.
However, this might be much more complicated than saying. Cause TreeMap extends AbstractMap and implements Map, Java 1 might not have all those dependencies, so you have to pull out all those parents and compile, then the parent of parent, and easily the whole collection framework.
Nan, that is too much of hassal, why don't you just port your code to Java 2, instead of porting Java 2 to Java 1?
--lichu