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
- Right click on the 'My Computer' icon on your desktop and select 'Properties'.
- Click the 'Advanced' tab.
- Click the 'Environment Variables' button.
- Click 'New'.
- In the 'Variable name' field, enter 'JAVA_HOME'.
- In the 'Variable value' field, enter the directory (including its full path) where you installed the JDK.
- 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,
- Open up a shell / terminal window
vi ~/.profile(replace vi with your favourite text editor)- Add
export JAVA_HOME=/path/to/java/home/diron its own line at the end of the file - Add
export PATH=$JAVA_HOME/bin:$PATHon its own line immediately after - Save, and restart your shell
- Running
java -versionshould give you the desired results
For all users in the system,
- Open up a shell / terminal window
vi /etc/profile(replace vi with your favourite text editor)- Add
export JAVA_HOME=/path/to/java/home/diron its own line at the end of the file - Add
export PATH=$JAVA_HOME/bin:$PATHon its own line immediately after - Save, and restart your shell
- Running
java -versionshould 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
- Supported Platforms
- Installing Crowd and CrowdID
- Running the Setup Wizard
- Configuring Crowd
Labels:







3 Comments
Hide/Show CommentsSep 06, 2010
Jacques Marneweck
On Solaris just setup the service management facility (SMF) to start/stop/restart crowd. Use something similar to:
Jan 05, 2011
Jayesh
On Ubuntu 64bit, editing .profile did not seem to work and editing .bashrc worked.
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.
Add Comment