Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated filenames for Java 17.0.3 version

...

The Jetbrains JDK releases are unofficial but they provide JREs patched with the DCEVM. They are available at https://github.com/JetBrains/JetBrainsRuntime/releases . These instructions were tested with Release 17_0_13-b164.4, architecture osx-x64, JBR with JCEF (DCEVM), jbr  and jbrsdk. They should also work with architecture osx-aarch64.

curl -OL curl -O https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk_dcevmjcef-17_.0_1.3-osx-x64-b164b469.432.tar.gz
tar -zxf jbrsdk_dcevmjcef-17_.0_1.3-osx-x64-b164b469.432.tar.gz
sudo mv jbrsdk_jcef-17.0.3-x64-b469 /Library/Java/JavaVirtualMachines/jbrsdk_dcevm-17_0_1-osx-x64-b164.4

Hotswap Agent

Copy the latest version of Hotswap Agent from https://github.com/HotswapProjects/HotswapAgent/releases

curl -OL https://github.com/HotswapProjects/HotswapAgent/releases/download/1.4.2-SNAPSHOT/hotswap-agent-1.4.2-SNAPSHOT.jar
sudo mkdir /Library/Java/JavaVirtualMachines/jbrsdk_dcevmjcef-17_0_1-osx.0.3-x64-b164.4b469/Contents/Home/lib/hotswap
sudo mv hotswap-agent-1.4.2-SNAPSHOT.jar /Library/Java/JavaVirtualMachines/jbrsdk_dcevmjcef-17_.0_1.3-osx-x64-b164.4b469/Contents/Home/lib/hotswap/hotswap-agent.jar

...

    JRE Home: /Library/Java/JavaVirtualMachines/jbrsdk_dcevmjcef-17_.0_1.3-osx-x64-b164.4b469/Contents/Home

    JRE name: jetbrains dcevm 17

...

The "--add-exports" is not required for hotswap but is required to run WebObjects applications in Java 17.

Troubleshooting

a. Some versions of macOS may prevent this java from running because of security quarantining. Try removing quarantine from java folder.

sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/jbrsdk_dcevmjcef-17_0_1-osx-x64-b164.4.0.3-x64-b469

b. In the "Project" menu, "Build Automatically" should be selected for hot swap to work.

DCEVM and Hotswap Agent for Java 8

...