Skip to content

Commit 8118e61

Browse files
committed
add opens
1 parent 78d4c6f commit 8118e61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ java_args:
3131
# Global java_args can be used to suppress reflective access warn
3232
```
3333

34+
## Suppressing Reflective Access warnings
35+
36+
Since JRuby-9.2.10.0 it is possible to suppress reflective access warnings by including a `jruby.java_opts` file with following contents:-
37+
38+
```bash
39+
--add-opens java.base/java.lang=ALL-UNNAMED
40+
--add-opens java.desktop/java.awt=ALL-UNNAMED
41+
--add-opens java.desktop/sun.awt=ALL-UNNAMED
42+
--add-opens java.desktop/sun.java2d.opengl=ALL-UNNAMED
43+
```
44+
Mainly needed for opengl sketches.
45+
3446
## Install Steps (assumes you have requirements above)
3547

3648
```bash

0 commit comments

Comments
 (0)