Skip to content

Java installation

maybites edited this page Nov 20, 2022 · 5 revisions

These instructions should help Max-MSP to find the installed JDK:

OSX

Install the official JRE 8 or any Java version above 1.8 and you should be fine.

Windows

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

2.2.1 edit the registry

  1. open Notepad

  2. 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"
  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 with jdk-19.0.2

  2. save the file with a .reg extension and execute it with admin rights.

now your JDK is ready for action.

2.2.2 add the paths

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

Clone this wiki locally