add java version check to nio2 dependent module