
Mozilla's Firefox project is a robust, open source web browser. It is flexible and easy to configure. In this article we will explain how to install FIREFOX with Java support. Note that our instructions are based on installing into a pre-existing GNOME environment on FreeBSD 8.1 release system. We install Firefox before installing java because we need Firefox to help us get files we need# cd /usr/ports/www/firefox35
# make install clean
Unfortunately, installing Java is a little more difficult since the folks at Oracle have restrictively licensed JAVA to the FreeBSD foundation. It will take a little effort and patience to install, but it is well worth it. There are several ways to install JAVA into the FreeBSD system. In our example we will focus on building a native Java Developer Kit (JDK) install.| The following assumes you are running the installation logged in as the root user. If not, you will need to # chmod 775 /usr/ports/distfiles if the logged in user is in the wheel group, or # chmod 777 /usr/ports/distfiles if not. |
| Once the install starts, you will have to accept the license by scrolling to the bottom and typing yes. I had issues with this for a while because it does not echo anything back indicating it was starting the install. I assumed it wasn't working and spent time troubleshooting. One day, I went to the bathroom after typing yes, and when I came back I saw it was installing. The lesson here is to be patient and know it will not do anything immediately after you type yes and hit enter. |
Finally, we will actually install the java plugin for Firefox.
First, we need to make a directory for our user. Go to the user account you want to use for your desktop. (You will need to repeat this step for each Firefox user wanting to use the java plugin).
# su - <user>
% cd ~
% mkdir .mozilla/plugins
Now we will install the plugin as a symbolic link to the actual library used by Firefox.
% ln -s /usr/local/diablo-jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/
Restart Firefox and in the location bar, type about:plugins . You should see the java plugin installed. Then go to http://www.phllonline.com ... after a few seconds, you should see a rotating java picture banner on that page.