Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot execute binary file: Exec format error #59

Closed
SpasNH opened this issue Nov 6, 2019 · 3 comments
Closed

cannot execute binary file: Exec format error #59

SpasNH opened this issue Nov 6, 2019 · 3 comments

Comments

@SpasNH
Copy link

SpasNH commented Nov 6, 2019

Hi. Does anyone know what is the problem?
I have made the rars1_3_1.jar executable:
chmod a+x rars1_3_1.jar

I installed:
sudo apt-get install default-jdk
java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Debian-1deb10u1, mixed mode, sharing)

I checked:
sudo update-alternatives --config java
[sudo] password for edu:
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-11-openjdk-amd64/bin/java
Nothing to configure.

Please help. I need rars because I'm following a riscv on openFPGA tutorial.
thanks.

@ammarfaizi2
Copy link

@SpasNH you must use java -jar to run the JAR file, not execute it as ELF file like that.

So, run java -jar rars1_3_1.jar.

@SpasNH
Copy link
Author

SpasNH commented Nov 6, 2019 via email

@TheThirdOne
Copy link
Owner

This seems to be resolved. Thanks @ammarfaizi2 for answering this before I got to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants