Forums > Java

Check JAVA installation on Windows

Dec 21 2011 | 7:01 pm

I’m looking for the simplest possible way to check and see if Java is installed for Windows users from within Max….anybody have a solution? This is going in m4l, so there’s no possibility of support outside of native processes or C externals. I’m sure DOS would avail, but I’m only checking in the first place so that I can use DOShack for other stuff….if only it were in C :(


Dec 22 2011 | 3:45 pm

You would have to write some C code for a custom external that checks the Registry:

HKLM "SOFTWAREJavaSoftJava Runtime Environment"

If that key doesn’t exist – then no Java installed.

Dec 22 2011 | 7:33 pm

Thanks for the response….I found your earlier posts about creating an installer and followed them to their logical conclusions. I decided to just create a C external that can ‘mkdir’ and ‘xcopy’ instead, since I’m going to have to do something in C anyway. Seems like I should just be able to call system() to get what I need….


Dec 22 2011 | 8:03 pm

FWIW, I did create an installer (for some of my standalones) that checks for this registry key, and if not detected, directs the user to the Java site to download and install. It’s not as integrated as I would have ideally liked, but it gets the job done. I use the NSIS installer:

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Java