./java: No such file or directory (on Linux)

[tweetmeme]
… and when you look, it exists, it has the correct permissions and everything. Do a long-listing and it’s readable and executable by everyone, and all the directories up the tree also are.  It just doesn’t start!  I spent a while looking for this and didn’t find it on google so hopefully this helps someone.

The clues:

$ file java
java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped


$ uname -a

reports a 64-bit OS.

The problem is you’re running a 64-bit OS with insufficient 32-bit shared library support to run a 32-bit binary.

The solution:

$ sudo aptitude install ia32-libs

(Courtesy of http://www.debian-administration.org/articles/534)


PS: Yes, I know I could get a 64-bit java interpreter….

Advertisements

12 Responses to “./java: No such file or directory (on Linux)”

  1. Jane Parker Says:

    Thank you — very helpful!

  2. Aaron Says:

    You just saved me from having to switch back to a 32 bit OS. Thank you very much.

  3. Morathar Says:

    This post was very helpful thank you very much.

    Greetings from Germany.

  4. vince Says:

    very helpful, thank you very mush!!!

  5. John Burbridge Says:

    Dude, YOU ROCK!

  6. kiran Says:

    very useful.
    Thanks.

  7. Kagunlou Says:

    Awesome, you saved me a lot of time! Thanx!

  8. San Says:

    Would have never got it . Thanks buddy ! Much appreciated !

  9. santosh Says:

    thanks alot,saved my time

  10. Marcus Says:

    You saved me too.. thanks a lot

  11. parla Says:

    thanx soo much

  12. Ignacio A. Poletti Says:

    Thank u! you make my day


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: