I recently installed Java on my Arch Linux system, but I'm running into a problem. After installing it, I get a 'command not found' error when I try to run Java. I had previously installed an older version, JDK 8, but now it seems like something's not set up correctly. Can anyone help me figure out what steps I should take to resolve this?
1 Answer
First off, how did you install Java? It would really help if you could share the exact commands you used or the package name if you went through a package manager. Knowing how you installed it can lead us to the right solution.
I grabbed the JDK 24 tar.gz from the official Java link and followed some instructions that a chatbot provided. But I can’t access that chat anymore, so I'm a bit lost on the details.