Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Reducing download time for applet

Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jar file of size 250k which has my applet and related classes... it takes lot of time for my applet to load there any way I can reduce the jar file anymore ? also when we analized with optimal server vantange shows there were a number of appturns involved .... I thought when the applet is called for the first time ..thereshould be only one trip ..but it shows a lot of app turns ..anyidea ?
thanks in advance!
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what an "appturn" is so I can't address that issue.
As for the speed of loading a jar file, if it's an issue of network bandwidth, you can compress the jar file. Remember that a .jar file is really just a .zip file (they have the exact same file format). A .zip file is an archive of a list files that can optionally be compressed with LZW compression (.gz)
One of the options when creating your jar file is to use compression; if you do, you will reduce the size of your jar file. This in turn will help you download it faster in limited-bandwidth situations. Keep in mind though that if you compress your archive, your client machine must un-compress it before it can be used, so if you have a very slow client machine, this might take a noticeable amount of time. But if you have a situation where you have a reasonably modern computer, and a slow connection, compressing your jar files will help speed up the d/l time of your applet.
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic