This documentation relates to Crowd 2.4.
If you are using an earlier version, please view the previous versions of the Crowd documentation and select the relevant version.
Skip to end of metadata
Go to start of metadata

Once you have installed the JDK (see Supported Platforms), you need to set the JAVA_HOME environment variable.

To set the JAVA_HOME environment variable on Windows

  1. Right click on the 'My Computer' icon on your desktop and select 'Properties'.
  2. Click the 'Advanced' tab.
  3. Click the 'Environment Variables' button.
  4. Click 'New'.
  5. In the 'Variable name' field, enter 'JAVA_HOME'.
  6. In the 'Variable value' field, enter the directory (including its full path) where you installed the JDK.
  7. Restart the computer.

To set the JAVA_HOME environment variable on 'nix based systems

There are many ways you can do it on 'nix based systems (including Mac OS X). Here are two:

For your current user,

  1. Open up a shell / terminal window
  2. vi ~/.profile (replace vi with your favourite text editor)
  3. Add export JAVA_HOME=/path/to/java/home/dir on its own line at the end of the file
  4. Add export PATH=$JAVA_HOME/bin:$PATH on its own line immediately after
  5. Save, and restart your shell
  6. Running java -version should give you the desired results

For all users in the system,

  1. Open up a shell / terminal window
  2. vi /etc/profile (replace vi with your favourite text editor)
  3. Add export JAVA_HOME=/path/to/java/home/dir on its own line at the end of the file
  4. Add export PATH=$JAVA_HOME/bin:$PATH on its own line immediately after
  5. Save, and restart your shell
  6. Running java -version should give you the desired results

If you are using a GUI, you may not need to open up the shell. Instead, you might be able to open the file directly in a graphical text editor.

RELATED TOPICS
  1. Sep 06, 2010

    On Solaris just setup the service management facility (SMF) to start/stop/restart crowd. Use something similar to:

  2. Jan 05, 2011

    On Ubuntu 64bit, editing .profile did not seem to work and editing .bashrc worked.

    1. Feb 15, 2011

      Anonymous

      The most likely way they want you to do it in Ubuntu 64 for all users:

      Inside that file put this:

      Save it and then:

      Log out and back in to test.