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

-1

u/[deleted] Apr 15 '24

Struggled with this for a while so I get it. Python was much easier.

I have laptop issues and it would crash constantly with SQL and Python projects, making me constantly lose the projects I was working on. Did not want to go through the struggle again so I opted for cloud based environments.

So I ended up using Visual Studio Code and GitHub codespaces.

There's different platforms you can use. It depends on saving space, frequency, budget, etc.

Just a heads up: There is definitely a learning curve with Java, but reading books on Java has been helping me a lot. Lmk if you need book recommendations.

1

u/[deleted] Apr 17 '24

sdk install java