That's still how to do Vanilla Java. Download from the official site, run. You will of course need the correct Java, and there are versions such as PaperMC and others that offer more server oriented features. I'd be happy to discuss those. But I've recently used just the vanilla server from Mojang Official with 1.19.2.