[Level 1] How to install 32 bit java for Juniper VPN in CentOS.
## ## Precondition: you have to download 32 bit openjdk first! ## compat_32="compat-libstdc++-296" libs_for_vpn="xterm ld-linux.so.2 libstdc++.so.6 libz.so.1 libXext.so.6 libXrender.so.1" java_64_rpms="java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 icedtea-web-1.4.1-0.el6.x86_64" libs_for_java_32="giflib.i686 nss.i686 libpng12.so.0 libpulse.so.0 rhino" java_32_rpm_url="ftp://ftp.muug.mb.ca/mirror/centos/6.5/os/i386/Packages/java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.i686.rpm" java_32_rpm="`basename $java_32_rpm_url`" download_dir="/tmp" ## download 32bit java cd $download_dir; wget $java_32_rpm_url ## remove native openjdk sudo yum -y remove java-1.7.0-openjdk ## install 32 compatible libraries for app in $compat_32 do sudo yum -y install $app done ## install libraries for vpn for app in $libs_for_vpn do sudo yum -y install $app done ## install 64 bit java for app in $java_64_rpms do sudo yum -y install $app done ## setup alternative java sudo update-alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java ## install libraries for 32 bit java for app in $libs_for_java_32 do sudo yum -y install $app done ## install 32 bit java sudo rpm -ihv $java_32_rpmWish this helps.
regards,
Stanley Huang
Comments
Post a Comment