the build file and bash example out of synch

comparing to the latest code in the java tutorial repo

Closes #3419.

PiperOrigin-RevId: 162599972
diff --git a/site/docs/tutorial/java.md b/site/docs/tutorial/java.md
index 6059ba1..3a31311 100644
--- a/site/docs/tutorial/java.md
+++ b/site/docs/tutorial/java.md
@@ -88,8 +88,9 @@
 
 ```
 java_binary(
-    name = "ProjectRunner",
+    name = "my-runner",
     srcs = glob(["src/main/java/com/example/*.java"]),
+    main_class = "com.example.ProjectRunner",
 )
 ```
 
@@ -111,7 +112,7 @@
 and run the following command:
 
 ```
-bazel build //:ProjectRunner
+bazel build //:my-runner
 ```
 Notice the target label - the `//` part is the location of our `BUILD` file
 relative to the root of the workspace (in this case, the root itself), and
@@ -121,11 +122,11 @@
 Bazel produces output similar to the following:
 
 ```bash
-   INFO: Found 1 target...
-   Target //:ProjectRunner up-to-date:
-      bazel-bin/ProjectRunner.jar
-      bazel-bin/ProjectRunner
-   INFO: Elapsed time: 1.021s, Critical Path: 0.83s
+INFO: Found 1 target...
+Target //:my-runner up-to-date:
+  bazel-bin/my-runner.jar
+  bazel-bin/my-runner
+INFO: Elapsed time: 10.179s, Critical Path: 0.84s
 ```
 
 Congratulations, you just built your first Bazel target! Bazel places build