1. The Situation:
Error Message: Pulse Secure Application failed to load Java. Please install correct JRE version.Description: This issue happens when I'm using a M1 Mac with a correct version of Java/JRE installed. However, the Pulse Secures keep asking for a correct version of JRE installed.
2. The Solution:
The problem is the JRE installed in my Mac is missing a library called libjli.dylib. The solution is to install a JDK in addition to the existing JRE and adds a symbolic link (the "ln -s" command) from the JDK library to the JRE location.Step 1: Download Open JDK:
Follow below link to download:https://github.com/microsoft/openjdk-aarch64/releases/tag/jdk-16.0.2-ga
Step 2: Run below commands in Terminal
Open Terminal, run below commands and enter your Mac password after each command.sudo rm -rf "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib"
sudo ln -s "/Library/Java/JavaVirtualMachines/microsoft-16.jdk/Contents/Home/lib/libjli.dylib" "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/libjli.dylib"