-
Notifications
You must be signed in to change notification settings - Fork 0
Java installation
These instructions should help Max-MSP to find the installed JDK:
Install the official JRE 8 or any Java version above 1.8 and you should be fine.
If you installed the official JDK or openJDK and stored the extracted folder under
C:\Program Files\Java\
in case of JDK19 it looks like
C:\Program Files\Java\jdk-19.0.1
-
open Notepad
-
paste the following code into the editor
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK]
"CurrentVersion"="1.19"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JDK\1.19]
"JavaHome"="C:\\Program Files\\Java\\jdk-19.0.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]
"CurrentVersion"="1.19"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.19]
"JavaHome"="C:\\Program Files\\Java\\jdk-19.0.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE]
"CurrentVersion"="1.19"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\JRE\1.19]
"RuntimeLib"="C:\\Program Files\\Java\\jdk-19.0.1\\bin\\server\\jvm.dll"
"JavaHome"="C:\\Program Files\\Java\\jdk-19.0.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.19"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.19]
"RuntimeLib"="C:\\Program Files\\Java\\jdk-19.0.1\\bin\\server\\jvm.dll"
"JavaHome"="C:\\Program Files\\Java\\jdk-19.0.1"
-
adjust all the paths and versions according to the already installed or downloaded JDK in the previous step:
For example, if you have a newer JDK 19 installed and your path looks like this:
C:\Program Files\Java\jdk-19.0.2
replace all occurrences of
jdk-19.0.1
withjdk-19.0.2
-
save the file with a .reg extension and execute it with admin rights.
now your JDK is ready for action.
If you need the JDK for other tools (like Atom) you need to add the search paths manually:
here the detailed instructions (for Java 12)
in case of the above version the
the JAVA_HOME
variable would be C:\Program Files\Java\jdk-19.0.1
the newly added executable path inside the Path
variable would be C:\Program Files\Java\jdk-19.0.1\bin
(c) by Martin Froehlich maybites