where to point JAVA_HOME?

how does a newbie learn where best to point environment
variable $JAVA_HOME to? and what packages are likely
candidates to install (debian sarge) in order to have
the ingredients needed to point JAVA_HOME to?
any pointers hungrily welcomed.