Added setjdk function to java plugin