SpiraTeam version 4.0 requires Java version 6 or higher (also known as version 1.6).  We recommend using the latest version, which is currently version 7 update 17.
 
Using the same browser that you use for SpiraTeam, go to http://java.com/download, click on the Free Java Download button, and follow the prompts.