[Tinyos-help] compilation -- java problem
Mr. Jonathan A. Gomez
jon.gomez.04 at cnu.edu
Mon Jan 8 09:46:13 PST 2007
>/home/kamal/JavaIBM/ibm-java2-ppc-50/bin/javac: cannot execute binary file
Have you tried running javac directly? Did it (against expectations) work?
I believe this error can result from trying to run a file for a different machine architecture
on your computer. Based on the name, I'd say this version of javac is meant to run on power pc.
(You can probably check with the file command--see below). Is this your architecture?
Another possibility is that the file is just plain corrupt.
At any rate, you can poke the file a bit and test it:
If you have the file command, try running it on the file. Certain versions are quite verbose
and informative, and can tell what kind of binary something is based on its contents.
file /home/kamal/JavaIBM/ibm-java2-ppc-50/bin/javac
Maybe you could try using the object dumper on it, just to see how your binary utilities can
handle it:
objdump -t /home/kamal/JavaIBM/ibm-java2-ppc-50/bin/javac
And of course, just for sanity checking, you can just glance at it
less /home/kamal/JavaIBM/ibm-java2-ppc-50/bin/javac
I would suggest things like checking execute bit or shebang target, but those would generate
errors like 'permission denied' and 'bad interpreter', I would think.
Best wishes,
Jon.
More information about the Tinyos-help
mailing list