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
The latest version of openjdk and icedtea plugin work with Juniper VPN. Removing older and other versions of Java may also help.
See Could anyone provide a step by step for getting juniper netconnect and citrix?
This is one place where I found command line works better than the Ubuntu Software Center
First remove older versions of Java, both Oracle (Sun) and OpenJDK. For example, if you have OpenJDK 6 installed, type in a terminal:
Remove the Sun Java as well. If you have installed just the JRE, rather than JDK change the commands accordingly. Then install the OpenJDK-7 and corresponding plugin by:
Open Firefox and test the version of Java is being used by going to this site http://www.java.com/en/download/testjava.jsp
Note: As of Chrome 35 , the Java support for the Chrome on Linux has been discontinued. You have to use Firefox to make Java (and therefore Network Connect) work.
If you see version 7 is running, you are ready to try Juniper VPN. If not you may have to remove the other version of Java. Hope this helps.
Update: for 64bit Ubuntu 12.04 to 13.10
From 7.3 onwards, Juniper SA devices support 64-bit Ubuntu for Network Connect.
First, install the 64bit jre/jdk and icedtea
Second, install the 32bit jre
Note, do not install the 32bit icedtea. Make sure the 64bit is the default java. As long as the 32bit jre exists, Juniper will find the files it needs and run.
Tested on Ubuntu 13.04 64bit.
See Juniper Network Knowledge-base for details.
Update 2: for 64bit Ubuntu 14.04
Network Connect is looks for
update-alternatives
in /usr/sbin/ and there seems to be no symlink pointing to the right directory like 13.10 had.In addition to the steps above for 64 bit Ubuntu 12.04-13.10, add symlink to /usr/sbin/ by:
The 14.04 issue is explained in more detail at How to install Juniper VPN on Ubuntu 14.04 LTS?