Skip to content

Commit 375d89a

Browse files
authored
Update install-spoofax-on-macos-arm.md
Previous install instructions with SDKMAN did not make the JRE available to Eclipse resulting in a hard crash when a project is created.
1 parent e8db9c2 commit 375d89a

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

content/howtos/installation/install-spoofax-on-macos-arm.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,11 @@ The `-vm` path you should use in this case should be something like:
4343

4444

4545
## Installing a custom JDK
46-
To install and use a custom JDK for Spoofax, we recommend using [SDKman](https://sdkman.io/). However, only an x86 JDK is supported. Therefore SDKman has to be convinced to install x86 JDKs that are compatible with the Rosetta 2 emulation layer with a environment variable. We tested this with JDK 11 (recommended) but Java 8 and newer should work. For example:
47-
48-
```shell
49-
SDKMAN_PLATFORM=darwin sdk install java 11.0.18-tem
50-
```
51-
52-
!!! note ""
53-
For Temurin, JDK 8 should be the lowest version of JDK that is listed. If the lowest version of Temurin is JDK 11, then the above change to `sdkman_rosetta2_compatible=true` was not applied correctly or the terminal was not restarted.
46+
To install and use a custom JDK for Spoofax, we recommend using a [MacOS pkg installer](https://adoptium.net/en-GB/temurin/releases/?arch=x64&version=11&os=mac). Note that only an x86 JDK is supported. We tested this with JDK 11 (recommended) but Java 8 and newer should work.
5447

5548
Once installed, the `-vm` path in the Eclipse installation should be something like:
5649

5750
```
5851
-vm
59-
/Users/<USERNAME>/.sdkman/candidates/java/11.0.18-tem/bin
60-
```
61-
62-
Or alternatively, but perhaps less predictable, use whatever version is set as the _current_ default version of Java (using `sdk default java`):
63-
64-
```
65-
-vm
66-
/Users/<USERNAME>/.sdkman/candidates/java/current/bin
52+
/Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home/bin/java
6753
```
68-
69-
70-

0 commit comments

Comments
 (0)