Java – How to Install 32bit Java (OpenJDK) on 64bit Ubuntu 12.04


I have to run Juniper VPN on the 64bit Ubuntu 12.04. I have installed openjdk-7-jre, openjdk-7-jdk and icedtea-7-plugin. After the browser prompts to install the Juniper VPN, I check it has been successfully installed to "/home/huangyun/.juniper_networks/network_connect".

I open the Firefox from command line and check the log:

Launching "/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java" "-classpath" "/home/huangyun/.juniper_networks/network_connect/NC.jar" "NC" "-h" "" "-L" "0" "-l" "0" "-n" "" "-t" "" "-x"

I run the above command manully:

$ java -classpath ~/.juniper_networks/network_connect/NC.jar NC -h -L 0 -l 0 -n "" -t "" -x
Failed to load the ncui library.

I check the file and found that the .so file is 32-bit version:

$ file ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

I can not recompile the 32-bit .so file to 64-bit, so I think I have to install 32bit Java on 64bit Ubuntu 12.04. Could you please tell me how to do it? I have searched the web but find little information.

Best Answer

Juniper used to require Oracle Java, due to a bug in OpenJDK.

Refer :

to install java.