Developers Getting Started With i2b2
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Setting System Variables on a Linux Machine


The following steps will walk you through adding System Environment Variables to a machine running Linux.


indent
Level1

1. Open the terminal (shell) on your server.

indent
Level1

2. Enter the following command(s) to define and export your JAVA_HOME variable.


indent
Level2
Panel
borderColor#ccc
bgColor#ffffff
titleBGColor#DDD9C3
titleSet Variables Command
borderStylesolid

    JAVA_HOME=/opt/java/jdk1.6.0
    export JAVA_HOME


Warning
titleWarning
  • The variable value shown above is an example. When adding the JAVA_HOME variable in your environment you need to enter the path for your Java JDK directory.
  • It is extremely important the path is to the JDK location and not to the Java root directory.
  • The same holds true when you add the JBOSS_HOME and ANT_HOME variables in the next steps. The JBOSS_HOME variable needs to have the path for your JBoss directory and the ANT_HOME variable should have the path for your Ant directory.



indent
Level1

3. Enter the following command(s) to define and export your JBOSS_HOME variable.


indent
Level2
Panel
borderColor#ccc
bgColor#ffffff
titleBGColor#DDD9C3
titleSet Variables Command
borderStylesolid

    JBOSS_HOME=/opt/jboss-as-7.1.1.Final
    export JBOSS_HOME



indent
Level1

4. Enter the following command(s) to define and export your ANT_HOME


indent
Level2
Panel
borderColor#ccc
bgColor#ffffff
titleBGColor#DDD9C3
titleSet Variables Command
borderStylesolid

    ANT_HOME=/opt/apache-ant-1.8.2
    export ANT_HOME


indent
Level1

5. Enter the following to update your PATH variable


indent
Level2
Panel
borderColor#ccc
bgColor#ffffff
titleBGColor#DDD9C3
titleSet Variables Command
borderStylesolid

   
PATH=$PATH:$ANT_HOME/bin:$JAVA_HOME/bin


Info
titleNote

You do not need to export PATH because it has already been exported. If for some reason your PATH has never been exported then you will need to do it now. Simply adding variables to the PATH does not require you to export it again.