File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,23 @@ The primary purpose of this repository is to create an environment for collabora
1919
2020This project consists of different modules which have different Swift and Java runtime requirements.
2121
22+ On macOS for example, you can install the JDK with [ homebrew] ( https://brew.sh ) using
23+
24+ ``` bash
25+ $ brew install openjdk
26+ # and create a symlink into /Library/Java/JavaVirtualMachines
27+ $ sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
28+
29+ # or if you have a distribution as cask it will be installed into /Library/Java/JavaVirtualMachines
30+ $ brew install --cask corretto
31+ ```
32+
33+ or you can use a JDK manager like [ sdkman] ( https://sdkman.io/install/ ) and set your ` JAVA_HOME ` environment variable
34+
35+ ``` bash
36+ $ export JAVA_HOME=" $( sdk home java current) "
37+ ```
38+
2239## SwiftJava macros
2340
2441SwiftJava is a Swift library offering macros which simplify writing JNI code "by hand" but also calling Java code from Swift.
You can’t perform that action at this time.
0 commit comments