I have some problems after installing java 1.8 on Ubuntu Gnome 14.04 with Intellij Idea 13.1.
When I tried to import the sbt project , it is as follows:

I tried to install and configure java 1.7 on .pam-environment. But he continues to accept 1.8 as the main configuration and throw this warning. I decided to completely remove version 1.8.
Scala version:
nazar@lelyak-desktop:~⟫ scala -version
Scala code runner version 2.10.4 -- Copyright 2002-2013, LAMP/EPFL
And sbt- 0.13.1
I am interested to know how to use sbt with JDK 1.8?
Or with let sbt use version 1.7, when 1.8 is the default.
DECISION:
I changed the configuration in settingsfor sbt for user JDK- 1.7 and sbt-launch.jar- installed by me.