plplot: make java optional

Closes #24441.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>