Yes, that fixes the java related errors, thanks! The test output now:
Ran 1243 tests, 1214 results as expected, 14 unexpected, 15 skipped (2024-11-10 21:57:05+0900, 86.333090 sec)

The remaining unexpected fails are mostly maxima tests.
I do have some version of maxima installed, but never use it, so no idea if it is integrated into emacs (and (featurep 'ob-maxima) returns nil).
I copy the output here in case useful:
   FAILED  ob-maxima/batch+verbatim  ((should (equal (org-babel-execute-src-block) "(assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n                                 gamma(z + 1)")) :form (equal "(linenum:0,\n(assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n                                 gamma(z + 1)" "(assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n                                 gamma(z + 1)") :value nil :explanation (arrays-of-different-length 104 92 "(linenum:0,\n(assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n                                 gamma(z + 1)" "(assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n                                 gamma(z + 1)" first-mismatch-at 1))
   FAILED  ob-maxima/batch+verbatim+:lisp  ((should (equal (org-babel-execute-src-block) "((%GAMMA SIMP) ((MPLUS SIMP) 1 $Z))")) :form (equal "(%i1) (linenum:0,\n((%GAMMA SIMP) ((MPLUS SIMP) 1 $Z))" "((%GAMMA SIMP) ((MPLUS SIMP) 1 $Z))") :value nil :explanation (arrays-of-different-length 53 35 "(%i1) (linenum:0,\n((%GAMMA SIMP) ((MPLUS SIMP) 1 $Z))" "((%GAMMA SIMP) ((MPLUS SIMP) 1 $Z))" first-mismatch-at 1))
   FAILED  ob-maxima/batch+verbatim+empty-string  ((should (equal (org-babel-execute-src-block) "(%i1) \"\"\n(%o1) ")) :form (equal "(%i1) (linenum:0,\n(%i1) \"\"\n(%o1) " "(%i1) \"\"\n(%o1) ") :value nil :explanation (arrays-of-different-length 33 15 "(%i1) (linenum:0,\n(%i1) \"\"\n(%o1) " "(%i1) \"\"\n(%o1) " first-mismatch-at 6))
   FAILED  ob-maxima/batch+verbatim+empty-string-vq  ((should (equal (org-babel-execute-src-block) "\"\"\n ")) :form (equal "(linenum:0,\n\"\"\n " "\"\"\n ") :value nil :explanation (arrays-of-different-length 16 4 "(linenum:0,\n\"\"\n " "\"\"\n " first-mismatch-at 0))
   FAILED  ob-maxima/batch+verbatim+quiet  ((should (equal (org-babel-execute-src-block) "(%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n(%o1)                            gamma(z + 1)")) :form (equal "(%i1) (linenum:0,\n(%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n(%o1)                            gamma(z + 1)" "(%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n(%o1)                            gamma(z + 1)") :value nil :explanation (arrays-of-different-length 116 98 "(%i1) (linenum:0,\n(%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n(%o1)                            gamma(z + 1)" "(%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))\n(%o1)                            gamma(z + 1)" first-mismatch-at 7))
   FAILED  ob-maxima/batch+verbatim+whitespace-string  ((should (equal (org-babel-execute-src-block) "(%i1) \" \"\n(%o1)                                   ")) :form (equal "(%i1) (linenum:0,\n(%i1) \" \"\n(%o1)                                   " "(%i1) \" \"\n(%o1)                                   ") :value nil :explanation (arrays-of-different-length 68 50 "(%i1) (linenum:0,\n(%i1) \" \"\n(%o1)                                   " "(%i1) \" \"\n(%o1)                                   " first-mismatch-at 6))
   FAILED  ob-maxima/integer-input  ((should (equal 4 (org-babel-execute-src-block))) :form (equal 4 (("(linenum:0,") (4))) :value nil :explanation (different-types 4 (("(linenum:0,") (4))))
   FAILED  ob-maxima/list-input  ((should (equal "[2, [2, 3], 4] " (org-babel-execute-src-block))) :form (equal "[2, [2, 3], 4] " "(linenum:0,\n[2, [2, 3], 4] ") :value nil :explanation (arrays-of-different-length 15 27 "[2, [2, 3], 4] " "(linenum:0,\n[2, [2, 3], 4] " first-mismatch-at 0))
   FAILED  ob-maxima/matrix-output  ((should (equal '((1 2 3) (2 3 4) (3 4 5)) (org-babel-execute-src-block))) :form (equal ((1 2 3) (2 3 4) (3 4 5)) (("(linenum:0," "" "") (1 2 3) (2 3 4) (3 4 5))) :value nil :explanation (proper-lists-of-different-length 3 4 ((1 2 3) (2 3 4) (3 4 5)) (("(linenum:0," "" "") (1 2 3) (2 3 4) (3 4 5)) first-mismatch-at 0))
   FAILED  ob-maxima/simple-list-input  ((should (equal "[1, 2, 3] " (org-babel-execute-src-block))) :form (equal "[1, 2, 3] " "(linenum:0,\n[1, 2, 3] ") :value nil :explanation (arrays-of-different-length 10 22 "[1, 2, 3] " "(linenum:0,\n[1, 2, 3] " first-mismatch-at 0))
   FAILED  ob-maxima/string-input  ((should (equal "- sin(x)" (org-babel-execute-src-block))) :form (equal "- sin(x)" (("(linenum:0," "") ("-" "sin(x)"))) :value nil :explanation (different-types "- sin(x)" (("(linenum:0," "") ("-" "sin(x)"))))
   FAILED  ob-maxima/table-input1  ((should (equal "[[2.0], [3.0]] " (org-babel-execute-src-block))) :form (equal "[[2.0], [3.0]] " "(linenum:0,\n[[2.0], [3.0]] ") :value nil :explanation (arrays-of-different-length 15 27 "[[2.0], [3.0]] " "(linenum:0,\n[[2.0], [3.0]] " first-mismatch-at 0))
   FAILED  ob-maxima/table-input2  ((should (equal "[[2.0, 3.0]] " (org-babel-execute-src-block))) :form (equal "[[2.0, 3.0]] " "(linenum:0,\n[[2.0, 3.0]] ") :value nil :explanation (arrays-of-different-length 13 25 "[[2.0, 3.0]] " "(linenum:0,\n[[2.0, 3.0]] " first-mismatch-at 0))
   FAILED  test-org-table/sort-lines  ((should (equal "| a | x |\n| B | 4 |\n| c | 3 |\n" (org-test-with-temp-text "| <point>a | x |\n| c | 3 |\n| B | 4 |\n" (org-table-sort-lines nil 97) (buffer-string)))) :form (equal "| a | x |\n| B | 4 |\n| c | 3 |\n" #("| B | 4 |\n| a | x |\n| c | 3 |\n" 0 9 (face org-table) 9 10 (face org-table-row) 10 19 (face org-table) 19 20 (face org-table-row) 20 29 (face org-table) 29 30 (face org-table-row))) :value nil :explanation (array-elt 2 (different-atoms (97 "#x61" "?a") (66 "#x42" "?B"))))

On Sat, Nov 9, 2024 at 11:54 PM Ihor Radchenko <yantar92@posteo.net> wrote:
Benjamin McMillan <mcmillanbb@gmail.com> writes:

> Yes, that seems to work. It returns:
> "The operation couldn’t be completed. Unable to locate a Java Runtime.
> Please visit http://www.java.com for information on installing Java.
>
> no"

I just updated main with a patch that should detect scenarios like
yours and skip java tests.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cab233fb96

May you try running "make test" on the latest main?

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>