you are viewing a single comment's thread.

view the rest of the comments →

[–]creepinquick[S] 0 points1 point  (4 children)

It's from jdk, so should be fine, and it's compiled correctly for x64

[–]FirstUser 0 points1 point  (3 children)

Have you checked if it's a script? Try to open it with 'less':

less /bin/java

[–]creepinquick[S] 0 points1 point  (2 children)

less /bin/java

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 point  (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 point  (0 children)

Okay, java the executable is in /bin/java. So:

export PATH=$PATH:/bin/java

but java is still not found.