load time : Java Glossary
home L words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish 2008-04-05 by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
load time
java.exe takes quite a long time to start up. It loads DLLs, then it loads your classes one by one in class file format, and compiles and optimises them to machine code. What can be done to speed this up?
  1. The most dramatic savings is by using Jet, particularly the new beta which doubles the speed yet again, which does static native compilation. It does the preparation of the highly optimised machine code well in advance, and only loads the minimum number of classes you need.
  2. Use java.exe -client rather than java.exe -server. -client favours fast start up over fast execution.
  3. If you are using an old Java, upgrade to Java 1.6 which is faster at loading.
  4. Sun is not much interested in fast load. They are mostly concerned with server side where a program loads then runs for weeks or months at a time. They make their money selling premium server hardware. Even if it took 10 minutes for a server program to fire up, it would not matter. You need to put pressure on Sun to take an interest in speeding up program load for desktop utilities.
  5. I have proposed two projects to speed load, but both require modifying the JVM. See Gespenster fast program load and Hibernation (Suspended Animation) Fast Program Load. You might try implementing them as a prototype and convincing Sun to incorporate your proven idea. Java is open source.
  6. Use psychological techniques. Keep your user entertained with an interesting, varying display while the program loads. If the program looks frantically busy, the user is much less likely to be frustrated by the delay. You might write a little kicker program in C that launches your Java program then sets about in parallel displaying flash screens, perhaps enhanced with variable web content, to keep the user amused.

CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 11. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/loadtime.html J:\mindprod\jgloss\loadtime.html