test for java before setting up