File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes How to start JVM *after* a page has loaded? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to start JVM *after* a page has loaded?" Watch "How to start JVM *after* a page has loaded?" New topic

How to start JVM *after* a page has loaded?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
My web site has two main pages: a welcome page and an applet page.

To make the applet page load as quickly as possible, I included a small applet in the welcome page with the sole purpose of getting the jvm started, but that results in the welcome page taking too long to load...

Does anyone know of a reliable way to get the jvm to load *after* the page has loaded? I know, with javascript, I could use the onload event to write some applet code into the html, but I haven't had good results with this approach.

I've also tried using the onload event to popup another window that contains an applet but must popup blockers block it.

Anyone had any success in this area or have any ideas?

Bling Chen

Joined: Oct 11, 2007
Posts: 6
What version of JVM you are running?

Based on my expierence, applets do not take that long time to start up. Not to the extent where you need to run a dummy applet to start up the JVM...

You're using the <applet> or <object> tag I assume?
I agree. Here's the link:
subject: How to start JVM *after* a page has loaded?
It's not a secret anymore!