HP-UX Java newbee question - TreeMap

Hello all,I am running on HP-UX 10.20 with Javaversion C.01.18.05 2/6/2001I have a utility that is calling for util.TreeMapand it's not finding it.Can anyone tell me how I can get util.TreeMaponto my system?ThanksBruce
[289 byte] By [mayerb] at [2007-9-26 4:05:41]
# 1
There is no such class as "util.TreeMap".However java.util.TreeMap exists in versions of java after 1.2.
jschell at 2007-6-29 13:05:16 > top of Java-index,Archived Forums,Java Programming...
# 2
You're right my error in improperly defining the class.Since we are running on HP-UX 10.2 Java 2 is not available.Is there a way gain access to Java 2 version of the classand port it to Java 1?Bruce
mayerb at 2007-6-29 13:05:16 > top of Java-index,Archived Forums,Java Programming...
# 3

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

lichudang at 2007-6-29 13:05:16 > top of Java-index,Archived Forums,Java Programming...