Factsheet
How to I install the latest version of JDK?
How do I install Java?
Videos
I dont know if it ispossible (install JAVA through PIP) my guess is it is not. But what you have done with "pip install install-jdk" is just intalled a Python library called install-jdk. To have this working you need a python script that import this library and call the function who install JAVA. See https://pypi.org/project/install-jdk/
it sounds like you haven't downloaded the official java yet.
you have to download java via their official website first https://www.oracle.com/java/technologies/downloads/
afterwards, remember to set your PATH (under environment variables) to route to the correct java path
I want to follow along with "Algorithms, 4th Edition by Robert Sedgewick" to prepare for my data structures and algorithms class this coming semester. I've used Java before, but it's been about a year since I've used the language.
So I've been trying to run some basic Hello World programs, but I'm prompted to have at least Java 19. I've been trying to update the JDK using these tutorials and articles:
https://www.youtube.com/watch?v=5cia3zuG9XY
https://www.happycoders.eu/java/how-to-switch-multiple-java-versions-windows/
Things I've changed in system environment variables: 1 2 3 4
How it looks after doing those changes by following tutorials: still JDK 11
I've also tried restarting my device, then checking the version again, but it's still not JDK 20
Neither seem to work. Can anyone figure out what I've been doing wrong? Any well-intentioned advice is appretiated.
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?
