How to set JAVA_HOME environment variable in Ubuntu

I am actually creating this blog entry as a bookmark for myself, but since I know that I never remember how to do it, others might benefit as well!

One way that you can set your JAVA_HOME variable and add to your PATH, is be doing the folowing.  As ‘sudo’ open up /etc/bash.bashrc and add the following to the end of the file.  NOTE: Set the java path to whatever the actual path is on your environment if it does not match /usr/lib/jvm/java

JAVA_HOME=/usr/lib/jvm/java
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH

When you reboot, try running the following:

$ echo $JAVA_HOME
/usr/lib/jvm/java
 echo $PATH
[probably lots of paths]:/usr/lib/jvm/java/bin

The ColdFusion blog entry that I revisit the most

Of the countless quality posts that I have read from the ColdFusion community over the past several years, one sticks out as an entry that I find myself needing to come back to time and time again, as I apparently can’t seem to ever commit it to memory!

Last April, Mark Kruger made a really great post on configuring multiserver instances in ColdFusion with their own custom JVM settings, and adding them as Windows services.  I find that I use that post as a cheat sheet over and over again, and just wanted to point it out as a good reference to bookmark for anyone who may not have seen it.  Thanks Mark!

link: Configuring CF 7 Multiserver Instances – Including Custom JVM Settings