I used to call this installation my WebEx environment. WebEx has a requirement for a 32-bit Java installation. But, I found a few more needs for a 32-bit Java/browser such as a Juniper VPN.
Basically, I just did a variation on my older post about WebEx.
Here’s how I set it up:
Creating the Directory
I put all of the pieces under a single directory. I used to call it webex, but I am going to call it 32java. Here’s the commands:
<br /> cd ~/bin<br /> mkdir 32java<br />
I downloaded Java from the Oracle Java Download Page.
Next, I simply extracted it under my new 32java directory.
<br /> cd ~/bin/32java<br /> tar -xzvf ~/Downloads/jre-7u4-linux-i586.tar.gz<br />
I downloaded Firefox from the Download Page.
Again, I just extracted it into my 32java directory.
<br /> cd ~/bin/32java<br /> tar -xjvf ~/Downloads/firefox-12.0.tar.bz2<br />
After just slapping these programs into a directory, I need some glue to make them work together. The glue is a little launcher script. The script’s responsibility is to set the environment variables to where it will use these paths to run the programs.
I used these commands to edit the script.
cd ~/bin/32java<br /> gedit ~/bin/32java/32java.sh<br />
Then, in the gedit window, I wrote this script:
<br /> #!/bin/bash</p> <p>cd ~/bin/32java<br /> export ENV_HOME=~/bin/32java<br /> export FIREFOX_HOME=$ENV_HOME/firefox<br /> export MOZ_PLUGIN_PATH=$FIREFOX_HOME/plugins<br /> export PATH=$FIREFOX_HOME:$JAVA_HOME/bin/:$JDK_HOME/bin/:$PATH<br /> export JAVA_HOME=$ENV_HOME/jre1.7.0_04/<br /> export PATH=$FIREFOX_HOME/firefox:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH<br /> firefox --no-remote -P WebEx<br />
Next, you have to make the script executable. Also, make sure that your Java binary and Firefox binary are both executable.
<br /> chmod +x 32java.sh<br />
Finally, I needed to link in the Java plugin. Before creating the symbolic link, you have to set all those variables.
<br /> export ENV_HOME=~/bin/32java<br /> export FIREFOX_HOME=$ENV_HOME/firefox<br /> export MOZ_PLUGIN_PATH=$FIREFOX_HOME/plugins<br /> export PATH=$FIREFOX_HOME:$JAVA_HOME/bin/:$JDK_HOME/bin/:$PATH<br /> export JAVA_HOME=$ENV_HOME/jre1.7.0_04/<br /> export PATH=$FIREFOX_HOME/firefox:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH<br /> mkdir $MOZ_PLUGIN_PATH<br /> ln -s $JAVA_HOME/lib/i386/libnpjp2.so $MOZ_PLUGIN_PATH/libnpjp2.so<br />
To make sure you really have a 32-bit environment, run your script and visit the Java testing page. Look for the i386 architecture.
Adding to the Menu
To make running this easier, I added it to the menu. I opened the Main Menu application (you may need to install it). I thought the launcher went well under the “Internet” section, and there I clicked the “New Item” button.
I chose the link to my new script. I also make sure that I included the word WebEx in the comment so that if I forget and search for it by that, it will still show up in the results.
Installing the Certificate
This next section is more of a reminder for me. I am thinking of using this with a Juniper VPN, and I have to have a certificate to connect.
I went to Edit > Preferences, Advanced > Encryption and clicked the “View Certificates” button:
Next, I went to the “Your Certificates” tab and clicked “Import”:
Finally, I had to browse and find the p12 certificate file. It asked for the password, and then, it said it was complete: