I have feeling that I messed up something badly, I am a new Linux user, so I was trying to install Java…
So basically the command that I run in terminal is the following:
java -version
Error which I get
-bash: /usr/local/java/jdk-16/bin/java: cannot execute binary file: Exec format error
I was basically following this tutorial, and I might know where's problem, but now I can't find out which one tutorial I followed up, because after I did everything it didn't worked, so I tried another one... And I can't really recall the exact path where I was creating those changes(in which directory). I just know that I was going into /exec/ and there were some other files that I made changes to with nano, I remember that I added something like $JAVA_HOME = ....
and then something.
If someone can help, I'd be grateful
file /usr/local/java/jdk-16/bin/java
anduname -m
. Why are you trying to install java by any other means thanapt
?