JWeb : Installation on Linux


  1. INTRODUCTION
  2. JWeb is a point-and-click interface for display and interaction with SPIDER images and data written by Dr. Bimal Rath. JWeb is written in Java was developed and tested on Linux, SGi Irix & Windows computers.

  3. LOADING JWeb
    (May have already been done if you have installed SPIDER!)
    1. Download SPIDER/Web and place it in an appropriate directory: PARENT-DIR.
      The compressed SPIDER/Web distribution takes about 180 Mb of disk space. The uncompressed whole distribution will take about 850Mb but includes libraries and executables for several different systems some of which can be discarded.
    2. Uncompress the tar archive e.g.
      gunzip spiderweb.tar.gz
    3. Unpack the tar archive e.g.
      tar -xvf spiderweb.tar
    4. The following JWeb directories will be created under: PARENT-DIR/web/java
      File Contents
      linux/README.jweb.linux README file
      linux/j2re-1_4_2_06-linux-i586.bin JRE Install script
      linux/jai-1_1_2_01-lib-linux-i586-jre.bin JAI install script
      linux/WEB.jar Jweb Java archive
      linux/font.properties Jweb fonts
      linux/jweb.cshrc Necessary 'C' shell environment variables
      src Jweb source code

  4. INSTALLATION
  5. Install the Java Run Time Environment by executing: j2re-1_4_2_06-linux-i586.bin
    chmod a+x j2re-1_4_2_06-linux-i586.bin
    j2re-1_4_2_06-linux-i586.bin
    Agree to license terms.

    Install the Java Advanced Imaging Run Time Environment by executing: jai-1_1_2_01-lib-linux-i586-jre.bin
    cd j2re1.4.2_06/
    chmod u+x ../jai-1_1_2_01-lib-linux-i586-jre.bin
    ../jai-1_1_2_01-lib-linux-i586-jre.bin
    Agree to license terms.

    If you are using the 'C' shell, the next three tasks can be alternatively be done by editing the first line in: jweb.cshrc as instructed therein and then placing the contents of jweb.cshrc in your .cshrc startup file.

    Create $JWEB_DIR environment variable specifying location for JWeb.
    If you are using the 'C' shell, this can be done with setenv in your .cshrc startup file.
    setenv   JWEB_DIR   Enter_path_of_your_JWeb_directory_here

    Add Java libraries to $CLASSPATH & $LD_LIBRARY_PATH by
    setenv   JAIHOME   $JWEB_DIR/j2re1.4.2_06/lib
    if ( $?CLASSPATH ) then
      setenv   CLASSPATH   $JAIHOME/ext/jai_core.jar:$JAIHOME/ext/jai_codec.jar:$CLASSPATH
    else
      setenv   CLASSPATH   $JAIHOME/ext/jai_core.jar:$JAIHOME/ext/jai_codec.jar
    endif
    setenv   CLASSPATH   $JAIHOME/ext/mlibwrapper.jar:$CLASSPATH
    setenv   CLASSPATH   $JWEB_DIR/WEB.jar:$CLASSPATH

    if ( $?LD_LIBRARY_PATH ) then
      setenv   LD_LIBRARY_PATH   $LD_LIBRARY_PATH/:$JAIHOME/ext/:$CLASSPATH
    else
      setenv   LD_LIBRARY_PATH   $JAIHOME/ext/:$CLASSPATH

    endif

    Create jweb command with specified location and desired run-time memory allocation.
    alias   jweb   '$JWEB_DIR/j2re1.4.2_06/bin/java   -Xmx512m -Djava.util.prefs.syncInterval=2000000 web/StartWeb'

    Note that: 512m represents the maximum megabytes of memory allowed for this JAVA application. You may adjust this amount to suit your computer.

  6. TESTING
  7. Test JWeb :
    jweb
    USE MOUSE TO SELECT MENU ITEMS FROM PULL-DOWN MENUS

    Further information on the use of JWeb is given in the JWeb manual.

  8. BUGS, SUGGESTIONS
  9. Send any bug reports or suggestions to: spider@wadsworth.org

Source: jweb-inst-linux.html     Last update: 10/25/07