IntelliJ Java IDE
The moose likes JNLP and Web Start and the fly likes Expediting Application Download Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "Expediting Application Download" Watch "Expediting Application Download" New topic
Author

Expediting Application Download

Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
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 ]

SCJP Tipline, etc.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1863
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


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
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

Joined: Sep 22, 2001
Posts: 2559

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
 
 
subject: Expediting Application Download
 
Threads others viewed
I think I have a memory leak: 33 megs of char arrays.. what to do?
organizing classes into packages
Moving a big gob of java server stuff to a windows mobile contraption
disapointed with IDEA (I have no idea why people like it)
Storing Configuration Information
developer file tools