diff --git a/make/common/NON_CORE_PKGS.gmk b/make/common/NON_CORE_PKGS.gmk
index 8d7f1a71efc..b6d92120b08 100644
--- a/make/common/NON_CORE_PKGS.gmk
+++ b/make/common/NON_CORE_PKGS.gmk
@@ -79,8 +79,7 @@ JCONSOLE_PKGS = com.sun.tools.jconsole
TREEAPI_PKGS = com.sun.source.doctree \
com.sun.source.tree \
- com.sun.source.util \
- jdk
+ com.sun.source.util
NASHORNAPI_PKGS = jdk.nashorn.api.scripting \
jdk.nashorn.api.tree
diff --git a/modules.xml b/modules.xml
index 517842f69d9..d7db4ed42d8 100644
--- a/modules.xml
+++ b/modules.xml
@@ -204,9 +204,6 @@
javax.security.cert
-
- jdk
-
jdk.net