You can do this I guess. Go to nodes and check the configuration of node which have jdk 8 installed. There you can find one field named Usage, set that field as Use this node as much as possible.
Go to other nodes and set that same field with Only build jobs with label expressions matching this node.
You can do this similar kind of thing by creating user in nodes and assign jobs to that particular user. If you created user in your preferred jdk 8 machine, than the job will run on that particular machine.
You can go through the below link. It may help.