Recently I had to make an offline CD containing my Java Web Start application. Since it had to be as idiot-proof as possible I put the extracted JRE on the CD and a simple Visual Basic frontend program that launched the application’s jar file with the java.exe from the CD.
This worked, however starting the program for the first time takes about 30 seconds. Subsequent launches take around 2 or 3. I’ve tested the CD’s content from a local harddisk, a network drive and a USB stick as well. On the local disk and the network drive the first launch takes about 6 seconds, so it’s not my program or Java itself being slow. The USB stick took around 20-30 seconds.
My guess was that it’s limited by the read speed of the CD/USB, but the JRE is only about 50 MB, so both should be able to read it in around 10 seconds tops.
It’s not a problem with a virus scanner since the issue was replicated on a computer without one installed.
Anyone have any ideas what causes the initial delay or an alternative equally idiot-proof way to distribute Java programs on a CD?