Use java_binary instead of android_binary to build java-matter-controller (#23562)

diff --git a/build/chip/java/rules.gni b/build/chip/java/rules.gni
index 166050f..c851830 100644
--- a/build/chip/java/rules.gni
+++ b/build/chip/java/rules.gni
@@ -28,6 +28,8 @@
 #
 #   jar_path: A path to an existing JAR. Mutually exclusive with sources.
 #
+#   deps: List of dependent .jar files needed by this library.
+#
 #   output_name: File name for the output .jar (not including extension).
 #     Defaults to the input .jar file name.
 #
@@ -184,6 +186,8 @@
 #
 #   jar_path: A path to an existing JAR. Mutually exclusive with sources.
 #
+#   deps: List of dependent .jar files needed by this binary.
+#
 #   output_name: File name for the output binary under root_build_dir/bin.
 #
 #   javac_flags: additional flags to pass to the javac compiler
diff --git a/examples/java-matter-controller/BUILD.gn b/examples/java-matter-controller/BUILD.gn
index 7c8bdf2..71a44aa 100644
--- a/examples/java-matter-controller/BUILD.gn
+++ b/examples/java-matter-controller/BUILD.gn
@@ -21,7 +21,7 @@
 
 build_java_matter_controller = true
 
-android_binary("java-matter-controller") {
+java_binary("java-matter-controller") {
   output_name = "java-matter-controller"
   deps = [
     "${chip_root}/src/controller/java",