r/javahelp • • Apr 14 '24

How do I install Java?

I'm sorry for this stupid question, but I'm really struggling here. I'm using Linux, and I don't know what I should install, there are so many packages. Should I install java, jdk, jvm, jre??? Maybe Openjdk? Java 8, 17 or 20?
For context, I'm coming from Python and a little bit of C, and installing python is easy you just install the python interpreter and run "python", or with C you just install GCC and glibc (if you don't have it for some reason). But for Java there are so many options and so many packages I just want to compile and run Java files, with the Java standard library, help please?

2 Upvotes

27 comments sorted by

View all comments

2

u/UltraMotionGraphics Apr 15 '24

As a beginner if you start with some common IDE like Idea or Eclipse, the JDK (include JVM) will be bundled, it will save you sometime from the environment setup.

1

u/wildjokers Apr 15 '24

As far as I know IntelliJ does not bundle a JDK. How could it know what version you need to use?

1

u/UltraMotionGraphics Apr 16 '24

https://www.jetbrains.com/help/idea/sdk.html You will need to choose from a list, but IntelliJ have offered a various choice of the recent JDK from different major vendors