make/Main.gmk
changeset 39386 2626b2d7af77
parent 39385 dff0c5d7f8f9
parent 39188 cdb1013defd0
child 39938 8d5f6d6b8a24
--- a/make/Main.gmk	Thu Jun 30 17:35:35 2016 +0200
+++ b/make/Main.gmk	Fri Jul 01 13:03:53 2016 -0700
@@ -633,7 +633,9 @@
 
   # Jmods cannot be created until we have the jlink tool ready to run, which requires
   # all java modules to be compiled and jdk.jlink-launchers.
-  $(JMOD_TARGETS): java.base-libs jdk.jlink-launchers
+  # And we also need to copy jvm.cfg (done in java.base-copy) and tzdb.dat (done in
+  # java.base-gendata) to the appropriate location otherwise jimage, jlink and jmod won't start.
+  $(JMOD_TARGETS): java.base-libs java.base-copy java.base-gendata jdk.jlink-launchers
   # When creating a BUILDJDK, the java compilation has already been done by the
   # normal build and copied in.
   ifneq ($(CREATING_BUILDJDK), true)