File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,24 @@ arch -x86_64 asdf install java openjdk-13.0.2
152
152
export JAVA_HOME=$HOME /.asdf/installs/java/openjdk-13.0.2
153
153
` ` `
154
154
155
+ ---
156
+ If ` arch -x86_64` command shows error, e.g. ` arch: posix_spawnp: asdf: Bad CPU type in executable` ,
157
+ you may need to launch a shell in the ` x86_64` architecture, then run the asdf commands:
158
+ ` ` ` zsh
159
+ env arch -x86_64 zsh --login
160
+ ` ` `
161
+ We can run ` arch` command in terminal, and verify we' re now in `i386` instead of `arm64`.
162
+
163
+ We can now do the installations in the x86 arch shell:
164
+ ```zsh
165
+ asdf plugin-add java https://github.com/halcyon/asdf-java.git
166
+ asdf install java openjdk-13.0.2
167
+ ```
168
+ After installation finishes, we can `exit` the x86 shell, and set the `JAVA_HOME` environment variable
169
+ ```zsh
170
+ export JAVA_HOME=$HOME/.asdf/installs/java/openjdk-13.0.2
171
+ ```
172
+
155
173
## Running Locally
156
174
157
175
### Running with sbt
You can’t perform that action at this time.
0 commit comments