I’m writing a Java applet for a small game. When a user doesn’t have Java installed, I would like to provide some sort of help. Automatically downloading Java is most likely not an option. How would I go about detecting if Java is installed, and showing a OS-appropriate download button if it’s not?
Thanks in advance,
Look into JNLP (also called Java Web Start). Here are a couple tutorials:
What’s nice about JNLP is that you don’t have to code anything, it’s already been done for you. And it allows for the automatic download of a JRE if it’s not installed.