check for dependency of jdk

Signed-off-by: Thomas Schubert <funthomas424242@gmail.com>