Appendix D. Unix Installation Notes

printer-friendly version of this section  Print  e-mail this section  E-Mail  add a public, group or private note  Add Note  add a bookmark about this section  Add Bookmark     next disabled - end of section

JSTL: JSP Standard Tag Library Kick Start
By Jeff Heaton

Table of Contents


Appendix D. Unix Installation Notes

This book contains many examples that illustrate the use of JSTL. Appendixes B and C explain how to set up your environment for the Windows platform. The instructions in these two appendixes generally apply to using JSTL with Unix as well.

We developed our examples on a system that runs Red Hat Linux 7.2. This was our primary development environment, so all of the code in this book is well tested under Linux.

Linux versions are available for Tomcat, MySQL, and the JDK. You should install all of these programs to their standard locations. You must also modify your profile file so that the classpath and system path are set up properly.

Under Unix, the procedure for changing your profile file varies greatly, depending on which shell you are running. Listing D.1 shows a simple profile for the BASH shell, which is the default shell for Red Hat Linux.

Listing D.1 A Sample .bash_profile File
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then      . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin:/usr/java/j2sdk1.4.0/bin JAVA_HOME=/usr/java/j2sdk1.4.0/ CLASSPATH=./usr/jar/mm.mysql-2.0.12-bin.jar:/var/tomcat4/common/lib/   servlet.jar:/var/tomcat4/webapps/ROOT/WEB-INF/lib/jstl.jar:/var/   tomcat4/webapps/ROOT/WEB-INF/lib/standard.jar export PATH export JAVA_HOME export CLASSPATH unset USERNAME 

It is unlikely that you will want to copy this file directly over your existing profile. We used the script file in Listing D.1 with a test user we created to test examples for this book. Regardless of how much of this file you use, it does show you where the various paths are likely to be set up. If your system installs these components to different paths, you must use your own paths.


    printer-friendly version of this section  Print  e-mail this section  E-Mail  add a public, group or private note  Add Note  add a bookmark about this section  Add Bookmark     next disabled - end of section
    Top

    [0672324504/app04]

     
     


    JSTL. JSP Standard Tag Library Kick Start
    JSTL: JSP Standard Tag Library Kick Start
    ISBN: 0672324504
    EAN: 2147483647
    Year: 2001
    Pages: 93
    Authors: Jeff Heaton

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net