title: Getting Cassandra to use an alternate Java install
body: <p>I'm working on getting a Cassandra instance up and running, but i'm having issues telling Cassandra which Java installation to use. The situation is as follows:</p>
  
  <p>The server has Java 6 installed, and all Java environment variables are pointed to this installation ($JAVA_HOME, etc). This installation is what every other program on the server utilizes right now.</p>
  
  <p>Java 7 is also installed, in a separate location, but is not the version used by default.</p>
  
  <p>I've attempted to dig into the cassandra-env.sh script in $CASS_HOME/conf and the cassandra script in $CASS_HOME/bin, but I haven't had much luck finding a place to specify a different $JAVA_HOME directory. Does anyone have experience with doing this sort of thing with Cassandra?</p>