Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You might want to check out Sun's <a href="http://java.sun.com/javase/6/6u10faq.jsp" rel="nofollow noreferrer">kernel installer for Java</a> - it's fairly small, and takes care of downloading and installing out to a full JVM in the background. Depending on how you deploy your app, this might be small enough to just include it. In our app, even this installer is too big, so we detect the current installed JRE, then download the kernel installer if we detect that it's necessary.</p> <p>You can always use an http download (outside of a Web browser) from your installation system to get the kernel installer, then run it. We use NSIS and there are a number of http download libraries that work quite well for this. There are also several NSIS plugins that can detect the correct version of Java. The combination of those two pieces of functionality have always been sufficient for us.</p> <p>EDIT - if you are using NSIS, <a href="http://nsis.sourceforge.net/InetLoad_plug-in" rel="nofollow noreferrer">here's a plugin</a> that will download a file via http or ftp from inside the installation.</p> <p>and here's a <a href="http://nsis.sourceforge.net/Java_Launcher_with_automatic_JRE_installation" rel="nofollow noreferrer">full featured Java launcher using NSIS</a>. I don't care for the specific technique of actually starting the app - using javaw.exe - but the general approach of detecting the JRE version, UAC elevation, downloading the JRE installer is sound. We have our own launcher (instead of java.exe) that allows us to have our own process name, icons, etc...</p> <p>Personally, I recommend doing this sort of work in the installation itself.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload