Selects what memory options to use based on the current Java version