diff --git a/conf/layer.conf b/conf/layer.conf
index 5ba1db79747148b20cfb832a8cb4b988653a26a7..bc1e71a27b5857c79bb2f3a32f28adb95266f35c 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -18,5 +18,6 @@ LAYERDEPENDS_meta-openharmony += "openembedded-layer"
 LAYERDEPENDS_meta-openharmony += "oniro-staging"
 LAYERDEPENDS_meta-openharmony += "meta-python"
 LAYERDEPENDS_meta-openharmony += "clang-layer"
+LAYERDEPENDS_meta-openharmony += "meta-java"
 
 LAYERSERIES_COMPAT_meta-openharmony = "kirkstone"