diff --git a/modules.xml b/modules.xml
index 9259443888a..26866ca690e 100644
--- a/modules.xml
+++ b/modules.xml
@@ -1652,6 +1652,10 @@
jdk.internal.jline.console.history
jdk.scripting.nashorn.shell
+
+ jdk.internal.jline.internal
+ jdk.scripting.nashorn.shell
+
jdk.jartool
@@ -1819,6 +1823,7 @@
java.base
jdk.scripting.nashorn
jdk.internal.le
+ java.desktop
jdk.sctp