ide-probe
ide-probe copied to clipboard
Use JBR instead of the current JDK for running IntelliJ
AFAICS the IntelliJ is executed just under the current JDK:
$ ps -f 78132
UID PID PPID C STIME TTY TIME CMD
501 78132 1 0 9:48pm ?? 0:37.97 /Users/pawel_lipski/.sdkman/candidates/java/17.0.6-tem/bin/java -classpath /private/var/folders/wm/_61wp3jn3s7f8jh9x119ssp40000gn/T/ide-probe/instances/intellij-instance-241.13688.18--LYi5Na5HTVe67o3dg-QswA/Contents/lib/platform-loader.jar:...
as compared to e.g. runIde task from gradle-intellij-plugin, which uses JBR:
$ ps -f 78507
UID PID PPID C STIME TTY TIME CMD
501 78507 77257 0 9:54pm ?? 0:21.11 /Users/pawel_lipski/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-17.0.10-osx-x64-b1207.1/extracted/jbr_jcef-17.0.10-osx-x64-b1207.1/Contents/Home/bin/java ...
We do download JBR separately and put it where IJ expects it, so that the default launcher picks it up. For dmg files I think it is in the image itself and doesn't need to be downloaded. Anyway, it used to work