Skip to content

Scala-JDK version compatibility

Ensuring correct version alignment between the Scala compiler and the Java Development Kit (JDK) is a critical aspect of the [[Scala]] build process.^[600-developer-big-data-scala-scala-01.md]

Impact of Version Mismatch

Using incompatible or incorrectly aligned versions can prevent the build tools from compiling the source code successfully, potentially resulting in a failure to generate the required class files.^[600-developer-big-data-scala-scala-01.md] Even minor version differences (small releases) can have a significant impact on whether the compilation succeeds, meaning precise version matching is necessary rather than just ensuring major version compatibility.^[600-developer-big-data-scala-scala-01.md]

Verified Environment

While compatibility matrices vary across Scala versions, a specific combination of software versions has been historically noted to work correctly:

  • Scala: 2.12.7^[600-developer-big-data-scala-scala-01.md]
  • JDK: 1.8.0_181^[600-developer-big-data-scala-scala-01.md]
  • IntelliJ IDEA: 2018.2.2^[600-developer-big-data-scala-scala-01.md]

Sources

^[600-developer-big-data-scala-scala-01.md]