[Tinyos-help] compilation -- java problem

Kamal Gakhar kgakhar at gmail.com
Tue Jan 9 00:55:13 PST 2007


Hi,
I checked and bummer!! I realized that I downloaded the wrong version, it
turned out to be PowerPC as you said. Thanks, I am going to install xSeries
(Intel compatible).


On 1/8/07, Mr. Jonathan A. Gomez <jon.gomez.04 at cnu.edu> wrote:
>
>
> >/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.
>
>


-- 
Kamal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070109/667186f8/attachment.html


More information about the Tinyos-help mailing list