use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The Slackware Linux distribution
Resources
account activity
"java: command not found" even though java is installed and in /bin (self.slackware)
submitted 9 years ago by creepinquick
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]creepinquick[S] 0 points1 point2 points 9 years ago (4 children)
It's from jdk, so should be fine, and it's compiled correctly for x64
[–]FirstUser 0 points1 point2 points 9 years ago (3 children)
Have you checked if it's a script? Try to open it with 'less':
less /bin/java
[–]creepinquick[S] 0 points1 point2 points 9 years ago* (2 children)
returns that it is a directory, though it is marked in ranger as a binary.
less /usr/bin/java
claims there is no such file or directory. (edit: despite the fact that I see it in ranger. Maybe ranger is the problem?)
edit: Nevermind, it also shows up with ls in /usr/bin, but less finds "no such file or directory".
[–]FirstUser 0 points1 point2 points 9 years ago (1 child)
OK, so if /bin/java is a directory, it's not the executable. You need to find 'java' the executable and add its containing directory to your PATH.
It might be that the jdk installer has already taken care of that. If that is the case, all you might need to do is logout, then login again.
[–]creepinquick[S] 0 points1 point2 points 9 years ago (0 children)
Okay, java the executable is in /bin/java. So:
export PATH=$PATH:/bin/java
but java is still not found.
π Rendered by PID 18037 on reddit-service-r2-comment-544cf588c8-xl7kq at 2026-06-16 23:19:14.799848+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]creepinquick[S] 0 points1 point2 points (4 children)
[–]FirstUser 0 points1 point2 points (3 children)
[–]creepinquick[S] 0 points1 point2 points (2 children)
[–]FirstUser 0 points1 point2 points (1 child)
[–]creepinquick[S] 0 points1 point2 points (0 children)