Help! I Installed Java on Arch, but I’m Getting ‘Command Not Found’

0
5
Asked By TechyNinja82 On

I recently installed Java on my Arch Linux system, but now I'm facing an issue where it says the command is not found. I previously had an older version, JDK 8, installed. Can anyone help me troubleshoot this?

2 Answers

Answered By CuriousCoder34 On

First things first, how did you go about installing Java? If you could share the exact command you used or the package name from your package manager, that would help a lot! Knowing how you installed it will let us figure out why the command isn't recognized.

Answered By HelpingHand55 On

Just to clarify, did you download the JDK directly from the official Java website and extract it from a tar.gz file? If that's the case, make sure you added the Java bin directory to your PATH. This is often the reason why the command isn't recognized.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.