I am still new to the Raspberry Pi. At the moment I am busy with a project involving the Soft Float version of Debian Wheezy and for this project JRockit has been chosen as the Java Virtual Machine in which to run our Java applications. However when attempting to install the JRockit .bin file I get the error message "cannot execute binary file"
Does anybody know what could be causing this error?
JRockit is only designed to be installed on Linux systems running on CPU using the x86 32bit & 64bit instruction-set.
The Raspberry Pi uses Linux with ARM v6 instruction-set.
You get the "cannot execute binary file" error if you try to run a x86 ABI binary file OR a hard-float ABI ARM binary file on a soft-float ABI ARM system. The "application binary interface" ABI do not match.
I do not think there is any version of JRockit that work on the Raspberry Pi unless you decide to run it inside an emulator.
If you do happen to own a ARM v6 version of JRockit then read blow:
You can also get a "cannot execute binary file" if the binary file is not marked as executable.
You may make the filename.bin to be marked executable by running:
chmod +x filename.bin
find out more about the the_binary_file.bin using some tools found on your pi system, try running:
# file tells what kind of file it is
# ldd checks if the file can load all shared libraries
# readelf can list the ABI in use by examine the ELF header.
readelf -h the_binary_file.bin