Does anyone know if/when Visual Paradigm will either ship with a native JRE for Apple Silicon (M1)? Or, is it possible to switch it to using the Microsoft JRE or Azul Zulu JRE that are native on M1?
I tried adjusting i4jlauncher.config in Visual Paradigm.app/Contents/Resources to point to the other Java home, but just broke it in the process until I reverted the change.
Could you look in the bin folder of the Visual Paradigm installation and see if there are any .log files generated? If so, could you zip those files and send them to us for diagnosis? You can send me a private message, or submit a ticket at the URL below (don’t forget to attach the log files).
For reference to anyone else finding this, here is what I tried (and what I submitted to support):
I’ve tried moving jre.bundle in /Applications/Visual Paradigm.app/Contents/Resources to jre.bundle.old and then linking the native Azul Zulu JVM (ln -s /Library/Java/JavaVirtualMachines/zulu-11.jdk jre.bundle), but loading Visual Paradigm fails loading immediately, giving me “An internal error occurred (error code: Could not load JRE.)”. I have also tried linking Microsoft’s (/Library/Java/JavaVirtualMachines/microsoft-17.jdk).
I was hoping to find some log data, however there are no .log files in /Applications/Visual Paradigm.app (nor did I find any in $HOME/Library/Logs). There are logs in $HOME/Library/Application Support/VisualParadigm, as well as $HOME/Library/Application Support/Visual Paradigm (space in Visual Paradigm), however “Visual Paradigm” just has webview logs, and VisualParadigm has some properties as well as vp.log and vpupdate.log. vp.log has no data from today, however, so nothing is being logged from i4jlauncher.
I did notice that Azul Zulu’s OpenJDK does not have a jre folder, so I modified i4jlauncher.config’s 128 property to point to jre.bundle/Contents/Home instead of jre.bundle/Contents/Home/jre.
I also noticed that /Applications/Visual Paradigm.app/Contents/Resources/app/scripts/VisualParadigm.sh points to the jre subfolder, so I adjusted that file as well, but to the same result.
Last, I tried to link a jre subfolder to itself so jre/bin/java would resolve (cd /Applications/Visual Paradigm.app/Contents/Resources/jre.bundle/Contents/Home; sudo ln -s jre .) after linking to the Azul Zulu JRE, but I had no success there either (same result).
Thank you for your reply with the detailed description of what you have tried to solve the problem. I have forwarded your reply to our team for further study. When there is any news, I will let you know.
Both failed, but luckily I have solved it! The issue is because the JavaApplicationStub is built for x86_64, and Rosetta 2 won’t let it load an ARM JVM.
Instead, until an official ARM version of Visual Paradigm is available, here are the steps someone can take:
cd /Applications/Visual\ Paradigm.app/Contents/Resources