Skip to content

Commit e8db9c2

Browse files
authored
Update install-spoofax-on-macos-arm.md
SDKMAN is now configured with a env var instead of a config var for architecture.
1 parent 396ff5b commit e8db9c2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,10 @@ 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 configured to use x86 JDKs that are compatible with the Rosetta 2 emulation layer:
47-
48-
1. Edit the file `~/.sdkman/etc/config`.
49-
2. Change the value of `sdkman_rosetta2_compatible` to `true` (it is `false` by default).
50-
3. Save and close the file.
51-
4. Restart your terminal to apply the changes.
52-
53-
Now you can install a JDK. We tested this with JDK 11 (recommended) but Java 8 and newer should work. For example:
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:
5447

5548
```shell
56-
sdk install java 11.0.18-tem
49+
SDKMAN_PLATFORM=darwin sdk install java 11.0.18-tem
5750
```
5851

5952
!!! note ""

0 commit comments

Comments
 (0)