core: add option to disable openjdk check

Change-Id: If9ae414734be5b10b29787693d1b9f0ae0cd20af