Here is a video from @darinpope that describes the configuration of multiple JDK versions:
As a reminder, the term “slave” to refer to an agent has been deprecated since 2016. Please refer to On Jenkins Terminology Updates for more details. We request you update your post.
Thanks,
Mark Waite