Skip to content

Commit c59543b

Browse files
committed
Refine FAQ
1 parent ab947d5 commit c59543b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/code-howtos/faq.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ Please ensure that you setup and configured the Google Java Format IntelliJ plug
2424

2525
On Windows, to fix using the CLI, you can run the following command in the root directory of the project:
2626

27+
```bash
28+
find . -name "*.java" -exec /c/Program\ Files/OpenJDK/jdk-21.0.2/bin/java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar /c/Users/{username}/Downloads/google-java-format-1.24.0-all-deps.jar -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \;
29+
```
30+
31+
Note that the `.exe` does not produce the same results - thus the following command does not work:
32+
2733
```bash
2834
find . -name "*.java" -exec /c/Users/{username}/Downloads/google-java-format_windows-x86-64.exe -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \;
2935
```

0 commit comments

Comments
 (0)