depend on headless java 

openjdk-6-jre depends on x11-common and in turn depends on a lot of things unnecessary for scala.