java/openjdk17: Fix build on aarch64
PR: 274940 Approved by: glewis@
(cherry picked from commit 5db81da56a1828428702d4fb838b9431046f4009)