Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expediting Application Download

 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once again, we're back to my new little Java Web Start application.... :roll:
My application has to parse some XML files so, naturally, I'm using a handful of the classes from the jar file j2ee.jar. However, I'm only using a handful of classes and that jar file is 8 megs! The jar file for the rest of my appliaction is only 16 KB. (It'll grow before I'm done, but it certainly won't be anywhere near 8 megs).
Is there a way I can get the client to only download those classes that I'm using? Might it be possible to extract those classes and create another JAR file (I'm a little apprehensive about doing so because I'm afraid I might not bring along all dependent classes).
As it stands now, my app takes quite a while to download and run (the first time) and I wish it didn't. You can view the app here if you'd like to see how long it takes to download and execute. (This app will request full access to your system, but this is only to allow it to open and close files - none of which you'll be able to do, since you don't have the correct files on your system. You'll get a warning because the jar files are self-signed.)
*Note: This app is only a prototype so, if you try to open the wrong kind of file, it'll probably just puke. (In short, just don't tell me I have bugs in my program.)

Thanks,
Corey
[ April 11, 2003: Message edited by: Corey McGlone ]
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Corey,
u said - "My application has to parse some XML files so, naturally, I'm using a handful of the classes from the jar file j2ee.jar."
but if u want to parse XML can't u use Xerces-J? that should be less than using j2ee.jar...
regards
maulin
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
dom4j is a good xml-parser framework as well. it has a good documentation and you can use xpath. the jar file is around 450 kB.
chantal
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK, if you have JDK 1.4, you wouldn't need an external parser. The default crimson parser should suffice in most (all?) cases.
- Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic