Previous Next        Current Page: NeXtMidas Training / Installing NeXtMidas / Installing on Unix / Set Environment Variables
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
   + Installing on Windows   
   - Installing on Unix   
      - Create Data Directories   
      - Set Environment Variables   
      - Build the NeXtMidas Baseline   
   + Running the Confidence Tests   
Support & Maintenance   
File Handlers   


  • Shell Setup:
    • NeXtMidas runs with the C-shell (either csh or tcsh) and Bash shell.
    • Follow the instructions below to set up the environment variables in the shell of your choosing.
    • This follows X-Midas practice.
  • Environment Variables:
    • Set JAVAHOME to point to the Java installation directory (this is usually under /opt/). For example:
      C-Shell: setenv JAVAHOME /opt/j2sdk1.4.2_04
      Bash:    export JAVAHOME=/opt/j2sdk1.4.2_04
    • Set the NMROOT to point to the NeXtMidas install directory. For example:
      C-Shell: setenv NMROOT /home/midas/nxm220
      Bash:    export NMROOT=/home/midas/nxm220
    • Alias nmstart to simplify starting NeXtMidas:
      C-Shell: alias nmstart source $NMROOT/os/unix/nmstart
      Bash:    alias nmstart='source $NMROOT/os/unix/nmstart.sh'
      Use single quotes rather than double quotes when setting this alias so that any change to NMROOT will be automatically picked up next time you use nmstart.
    • Many users also alias nms to nmstart:
      C-Shell: alias nms nmstart
      Bash:    alias nms=nmstart
    • To make life easy these can all be set in .cshrc for C-Shell and .bashrc for Bash. For example:
      C-Shell:
      setenv JAVAHOME /opt/j2sdk1.4.2_04
      setenv NMROOT   /home/midas/nxm220
      alias nmstart   source $NMROOT/os/unix/nmstart
      alias nms       nmstart
      
      Bash:
      export JAVAHOME=/opt/j2sdk1.4.2_04
      export NMROOT=/home/midas/nxm220
      alias nmstart='source $NMROOT/os/unix/nmstart.sh'
      alias nms=nmstart
      

back