This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I responded to that post. If I remember correctly, Subversion set your JAVA_HOME env variable to point to something other than a full JDK (j2sdk).
My answer was to download the full jdk and set your JAVA_HOME variable to point to it. In the event that you had two programs requiring different JAVA_HOME env variables, set the env value in one of the wrapper scripts (such as TOMCAT_HOME/bin/startup.sh).