I use Ubuntu 10.10 server as test server for a Java program.

Linux sugam 2.6.35-22-server #35-Ubuntu SMP Sat Oct 16 22:02:33 UTC 2010 x86_64 

GNU/Linux Ubuntu 10.10

Since it is a test server and we like to see our application to work in both, 64-bit and 32-bit Java, I like to have OpenJDK (32-bit and 64-bit) and Java SE (32-bit and 64-bit), (total 4 instances) installed on the server.

I could install 64-bit easily and have the following Java versions:

$/app/java64bit/jre1.6.0_23/bin/java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

$ /usr/lib/jvm/java-6-openjdk/jre/bin/java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

But I am unable to install 32-bit Java on this 64-bit machine. I have correct binaries (cksum and md5sum validated).

On unpacking I get the following error for 32-bit version:

$ ./jre-6u23-linux-i586.bin 
./jre-6u23-linux-i586.bin: 56: cannot create install.sfx.12308: Permission denied
/usr/bin/sum: install.sfx.12308: No such file or directory
[: 83: -ne: unexpected operator
[: 83: -ne: unexpected operator
chmod: cannot access `install.sfx.12308': No such file or directory
./jre-6u23-linux-i586.bin: 86: ./install.sfx.12308: not found
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.

Is there a way to install 32-bit Java on a 64-bit server? Any help appreciated.

  • Where did you get the 32-bit java binaries? From synaptic or did you have to download them from somewhere else? – Marty Jul 14 '11 at 22:02
  • Download from sun website as I did not want it to install system wide. – Jamess Jul 15 '11 at 9:39

The error given suggests that you are trying to run the binary to somewhere that you don't have permissions. I'm fairly certain that you have to run it as root, so sudo ./jre-6u23-linux-i586.bin should get rid of that error.

Also make sure that you have ia32-lib installed, otherwise you shouldn't be able to run 32-bit applications.

| improve this answer | |
  • Great and Thanks Fraekkert. It was ia32-lib. I could get it working! – Jamess Feb 4 '11 at 8:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.