[jdom-interest] Can something be done about the applet support ?

elephantwalker elephantwalker at home.com
Mon Apr 23 18:46:37 PDT 2001


Colin,

I bet you hit a nerve on this one. The java 2 situation on browsers is
horrible, but ns 6 does come with java 2. In this case, you won't need to
include collections, it will work with ns 6. However, the stuff with ie 5+
will NEVER have java 2. This is because of the recent settlement with the
sun-m$ law-suite.

You could just ask everybody to use ns 6 ;)= .

Collections makes the world go around in jdom, though. The main class used
is the list interface, and this is used everywhere in the api (I believe the
internal implemenation is  an arraylist, but don't hold me to this one). So
vector is not the only thing that would need to be implemented.

There doesn't seem to be any good client-side alternatives for xml except
the built in stuff from m$. Even if we get jdom into java in jdk 1.4+, we
will still have this problem with m$.


Regards,

The elephantwalker

-----Original Message-----
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of Colin Johnson
Sent: Monday, April 23, 2001 6:22 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Can something be done about the applet support
?


Hi,

I'm a Java newbie, but I'm an experienced C++ developer so I find Java a
joy to use :)

Anyway, my problems stem from tryingto use JDOM in an Applet.

I emailed Jason about my problems and he was kind enough to drop hints
in all the right places to enable me to get it to work,
however it does mean I have to load JDOM-JDK11.JAR and COLLECTIONS.JAR
:(
COLLECTIONS.JAR is a whopping 254K and I just don't have room for this
on an embedded system (well not when everything else
is added up i.e. CRIMSON.JAR, JAXP.JAR, JDOM-JDK11.JAR and the applet
itself).

As a test this afternoon I wrote a little lightweight XML parser /
packager in Java and got it to do everything that I needed from JDOM,
however,
this is only a prototype and things are bound to get trickier so JDOM
support would be nice to have.

I wrote it first as an application and then ported it to an applet.

Low and behold the applet barfed on my use of collections, however it IS
possible to use java.util.vector from JDK 1.1 and get the thing to work
without having
to load COLLECTIONS.JAR.

It means that only a subset of Java 2 JDK 1.3 Vector methods are usable
but once these are replaced, i.e java.util.vector.get(index) with
java.util.vector.elementAt(index) in my case, the thing springs to life.

I know this is probably asking a bit much, but could someone look into
making a JDOM-JDK11.JAR build that doesn't require COLLECTIONS.JAR ?

Thanks

Colin
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com




More information about the jdom-interest mailing list