Which version of Java does SBT use?

sbt, scala

Solution

Just run sbt console and you'll get something like this:

Welcome to Scala version 2.10.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_45). Type in expressions to have them evaluated. Type :help for more information.

Which shows you the version of Java being used.

Cheers

JC

Problem

How to find out, which version of JDK SBT uses? My laptop has both JDK 1.6 and JDK 1.7 installed, so I was just wondering.

Original source