added method to fix java versio