If the Java Command Is Not Found
The most likely error you’ll see is “javac not found” or “java not found,” which means that even though you installed Java, your shell couldn’t find the java.exe or javac.exe applications. Here’s what’s going on:
The commands you’ve used so far are either built in or were installed by the BusyBox installer. But when you install Java, the computer may not know where you put it.
When you go to type in the command javac, the computer needs to find an executable named “javac” (on Windows it’s javac.exe; on Mac/Linux, it’s just javac). There are a couple of standard places that it knows to look. On Windows, that might include a directory like C:\Windows\System32, and on Mac/Linux there could be several directories, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access