Ask HN: What is a modern Java environment?
IDE: IntelliJ IDEA <a href="https:&#x2F;&#x2F;www.jetbrains.com&#x2F;idea&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.jetbrains.com&#x2F;idea&#x2F;</a><p>Nothing else seems to come close, they have a Community version, nowadays Eclipse and NetBeans both feel slow but Visual Studio Code with Java plugins lacks refactoring abilities one might expect in an IDE for non-trivial projects. Also, if you get the Ultimate package of their tools, you get all sorts of other useful tools, personally i also enjoy WebStorm and DataGrip for developing front end stuff and working with databases in a separate tool.<p>JDK: whatever the LTS release of JDK is at the time, based on the kind of work that i do (so JDK 17 now) <a href="https:&#x2F;&#x2F;adoptium.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;adoptium.net&#x2F;</a><p>As long as you&#x27;re not stuck with JDK 8, you should be fine in regards to this. But you can definitely enjoy some speed improvements across the releases as well as new language features as well as things like helpful NullPointerException messages. Personally, i&#x27;d sometimes also look towards OpenJ9 as an alternate runtime (due to lower memory usage), but that project&#x27;s future isn&#x27;t very clear (at least in regards to available container images) last i checked.<p>As for frameworks, pick one of the following:<p><pre><code>  - Spring Boot: mainstay of the Java ecosystem, has a really large amount of integrations and the Boot version also simplifies getting up and running, about as safe of a bet as Rails for Ruby or Django for Python
  - Dropwizard: probably the closest competitor to Spring Boot in my eyes, but is a more loose collection of a variety of pretty much &quot;standard&quot; libraries, has decent developer experience
  - Eclipse Vert.X: pick this if you want to work with reactive programming, last i checked it didn&#x27;t feel quite feature complete, but the performance numbers speak for themselves, even if it feels a bit niche
  - Quarkus: another modern option that&#x27;s tailored for the development of performant web services, got a lot of hype in conferences in the past few years
  - Helidon: pretty similar to Quarkus as far as i&#x27;m aware (at least as far as the positioning in the market goes) so figured i&#x27;d also mention it
</code></pre>
In practice, you&#x27;re most likely to see Spring Boot in existing projects since it&#x27;s so boring and dependable, though perhaps sometimes you&#x27;ll also run into the legacy Spring framework (which can be a pain to deal with) or even some of the other ones.<p>Here&#x27;s a rough performance comparison if you care about that sort of stuff: <a href="https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=data-r20&amp;hw=ph&amp;test=composite&amp;l=zik0vz-sf&amp;c=8" rel="nofollow">https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=data-r20&amp;hw=...</a><p>Build tools: personally, i just use whatever Docker images to base the apps on when available and something like Ansible when not. For the actual toolchain, Maven is still pretty dependable, i guess Gradle is also okay. You might occasionally run into tools like Bazel or Jib, experiences there might vary.<p>App servers: if you need an application server for some reason (e.g. deploy app as .war), Tomcat is still a good option. If you need the EE functionality (e.g. Java EE which is now Jakarta Java), you might need to reach for something like TomEE or Payara Server, though i haven&#x27;t needed to do that for a few years at this point, since Spring Boot embeds Tomcat and that is good enough for almost all projects.