test java environment