Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

checkJava "1.6" insufficient for sbt 1.0.2+ pulling scala 2.12.3 requires JDK8+ #193

Closed
javabrett opened this issue Nov 10, 2017 · 3 comments

Comments

@javabrett
Copy link
Contributor

See https://github.com/sbt/sbt-launcher-package/blob/master/src/universal/bin/sbt-launch-lib.bash#L265 .

sbt 1.0.2 pulls down 2.12.3 which requires JDK 1.8, so checkJava "1.6" is insufficient - install prep continues until:

Error during sbt execution: java.lang.UnsupportedClassVersionError: scala/Option : Unsupported major.minor version 52.0

#115 is somewhat related.

javabrett pushed a commit to javabrett/sbt-launcher-package that referenced this issue Nov 10, 2017
javabrett added a commit to javabrett/sbt-launcher-package that referenced this issue Nov 10, 2017
@dwijnand
Copy link
Member

Perhaps the fix is to use the sbt.version in build.properties to pick between checkJava "1.6" or checkJava "1.8".

@fommil
Copy link
Contributor

fommil commented Mar 22, 2018

this is fixed by the looks of it, but why are we even checking the java version? Java 6 was released in 2006, are we still concerned that somebody tries to start sbt with some old Java 3 install?

@fommil
Copy link
Contributor

fommil commented Mar 23, 2018

oh sorry, it's not fixed in the sense that you want it to check java 8. I tihnk it shouldn't check at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants