tradefed: refactor the installation of needed jdk

Change-Id: I76464cc1a24892fa5158b9a26d9f83c8232138a6
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2 files changed