Score:0

java --version gives error(cannot execute binary file: Exec format error)

nz flag

I have added JAVA_HOME variable and it gives correct value when I echo it!I also did config java command and chose option auto mode which has high priority. I also set export PATH=$JAVA_HOME/bin:$PATH but java --version still gives me error. Can you help? Step Step Step

uz flag
Jos
What is the output of `file /usr/bin/java`? (Keep following symbolic links until you get the real file.)
hr flag
`Exec format error` suggests you installed the wrong architecture version of java for your computer (x86_64 on i386, arm on x86_64 for example). BTW `export` isn't valid (or needed) inside the `/etc/environment` file.
David avatar
cn flag
You have the tag mint is this question about something on the Mint OS?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.