/bin/sh: /usr/jdk64/jdk1.7.0_45/bin/java: cannot execute binary file

Madura Dissanayake picture Madura Dissanayake · Sep 15, 2014 · Viewed 26.2k times · Source

I installed Ambari server successfully, But when I try to start that server it says,

/bin/sh: /usr/jdk64/jdk1.7.0_45/bin/java: cannot execute binary file

So could you please help me to resolve this.

Thank You.

Answer

ponomandr picture ponomandr · Sep 15, 2014

It might be wrong architecture. You might be running java x64 on x32 machine.

As @G.S mentioned in comments the same problem was disscussed at superuser