diff --git a/meta-oniro-staging/recipes-core/classpath/classpath-features-check.inc b/meta-oniro-staging/recipes-core/classpath/classpath-features-check.inc
new file mode 100644
index 0000000000000000000000000000000000000000..c238fc3fb63a2140e3cad6c069f72beecf71a6fc
--- /dev/null
+++ b/meta-oniro-staging/recipes-core/classpath/classpath-features-check.inc
@@ -0,0 +1,6 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+inherit features_check
+REQUIRED_DISTRO_FEATURES = "x11"
diff --git a/meta-oniro-staging/recipes-core/classpath/classpath_0.99.bbappend b/meta-oniro-staging/recipes-core/classpath/classpath_0.99.bbappend
new file mode 100644
index 0000000000000000000000000000000000000000..06e82becc5960d875dcf4efc577c5e0bf0ba79f8
--- /dev/null
+++ b/meta-oniro-staging/recipes-core/classpath/classpath_0.99.bbappend
@@ -0,0 +1,5 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+include classpath-features-check.inc