diff --git a/meta-ohos-staging/dynamic-layers/meta-java/recipes-core/openjdk/openjdk-7_%.bbappend b/meta-ohos-staging/dynamic-layers/meta-java/recipes-core/openjdk/openjdk-7_%.bbappend
new file mode 100644
index 0000000000000000000000000000000000000000..25a6dae07d4b002823bc5c6915432ef1878c9b6d
--- /dev/null
+++ b/meta-ohos-staging/dynamic-layers/meta-java/recipes-core/openjdk/openjdk-7_%.bbappend
@@ -0,0 +1,5 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+PACKAGECONFIG ??= ""