GitHub user laglangyue added a comment to the discussion: Unable to package 
with Java11, error reported

BTW
for 1.1.0-m1, if you just use jdk11 without jdk8, I got a exception
```shell
[error] (bill-of-materials / Compile / scalacOptions) A JDK 8 installation was 
not found, but is required to build Apache Pekko. To manually specify a JDK 8 
installation, set the JAVA_8_HOME environment variable to its path or use the 
"set every jdk8home := \"/path/to/jdk\" sbt command. If you have no JDK 8 
installation, target your system JDK with the "set every targetSystemJdk := 
true" sbt command, but beware resulting artifacts will not work on JDK 8
[error] Total time: 28 s, completed 2024年5月20日 下午9:42:21
```
Please follow the step:
```
sudo su
sbt   // run sbt-cli
set every targetSystemJdk := true
clean
compile // also to use `package`
```

I test it in m2 for 11.0.21-zulu, AdoptOpenJDK-11 and alibaba-11

GitHub link: 
https://github.com/apache/pekko/discussions/1333#discussioncomment-9496809

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to