Skip to content

Commit c8f154f

Browse files
committed
docs: add IntelliJ JDK 17 workaround to README
Document IDEA-201168 and the need to disable “Use --release option for cross-compilation” in IntelliJ to avoid JDK 17 build errors.
1 parent 9b19f4a commit c8f154f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ After opening the project in IntelliJ, double check that the Java SDK is properl
4040
* Open the File menu and select Project Structure
4141
* In the SDKs section, ensure that a distribution of JDK 17 is selected (create one if none exist)
4242
* In the Project section, ensure the Project language level is set to at least 8.0.
43+
* When using JDK 17, an [IntelliJ bug](https://youtrack.jetbrains.com/issue/IDEA-201168) requires you
44+
to disable the `Use '--release' option for cross-compilation (Java 9 and later)` setting in
45+
`Settings > Build, Execution, Deployment > Compiler > Java Compiler`. If this option remains enabled,
46+
you may encounter errors such as: `package sun.misc does not exist` because IntelliJ fails to resolve
47+
certain internal JDK classes.
4348

4449
Presto comes with sample configuration that should work out-of-the-box for development. Use the following options to create a run configuration:
4550

0 commit comments

Comments
 (0)