If You got Juniper SA older than 7.3, then You need to install both 32 and 64 bit.
You need to launch java 32 bit to run network connect.
You need to install libxtst6:i386 package to run 32bit version of java on 64 bit system:
sudo apt-get install libxtst6:i386 libxrender1:i386 libxi6:i386 libncurses5:i386 libncursesw5:i386 libncurses-ruby:i386
(if it fails, then install whole ia32-libs package).
install 64 bit version in /usr/lib/java/jre/
install 32 bit version in /usr/lib/java32/jre/
then do following:
sudo mv /usr/lib/java/jre/bin/java{,.orig}
sudo gedit /usr/lib/java/jre/bin/java
file should look like this:
#!/bin/bash
if [ "$3" = "NC" ]
then
/usr/lib/java32/jre/bin/java "$@"
else
/usr/lib/java/jre/bin/java.orig "$@"
fi
Then You need to make it executive:
sudo chmod +x /usr/lib/java/jre/bin/java
Then use update-alternatives to install appropriate version of java:
sudo update-alternatives --install /usr/lib/mozilla/plugins/libnpjp2.so java_plugin /usr/lib/java/jre/lib/amd64/libnpjp2.so 10
sudo update-alternatives --install /usr/bin/java java /usr/lib/java/jre/bin/java 10
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/java/jre/bin/javaws 10
If You have encrypted home folder, since 13.04 there is nosuid added to mount options, so You can move .juniper folder outside of encrypted home, ie: /opt an the create a symlink:
cd ~
mv .juniper /opt
ln -s /opt/.juniper .
Determine if You have installed java plugin in Firefox (in add-ons -> plugins).
If So, You should be ready to go.
I took recipe from that page: http://ubuntuforums.org/showthread.php?t=232607&page=51
But if You want to run openjdk, then follow those steps:
sudo apt-get install openjdk-7-jre icedtea-7-plugin openjdk-7-jre:i386 ia32-libs
sudo mv /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java{,.orig}
sudo gedit /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
It shoul look like this:
#!/bin/bash
if [ "$3" = "NC" ]
then
/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java "$@"
else
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java.orig "$@"
fi
Make it executive:
chmod +x /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
So far it worked for me.
Regards,
Mario.
Best Answer
You could try the suggestion in this post: Juniper setup on 12.04
Update for 14.04 Trusty Tahr (64-bit)
First run with Network Connect on 14.04 resulted a failure and Network Connect just complained about missing 32-bit libraries. My NC version is 7.4R6. I did have all the libraries installed and openjdk-7-jre:i386 installed.
Digging a little bit deeper revealed that Network Connect is using update-alternatives listing to decide if 32-bit jre is installed.
However it's looking update-alternatives from /usr/sbin/ and there seems to be no symlink pointing to the right directory like 13.10 had. So adding symlink to /usr/sbin/ helped.
Just for completeness, as well as having to install a 32-bit JRE, I also had to follow the info here: http://itfuzz.blogspot.de/2013/11/juniper-network-connect-and-ubuntu-1310.html and run this command on 14.04:
I must already have done this on 13.10 as it worked then, but on 14.04 the Network Connect window just closed. This fixed the problem.