Ben Chuanlong Du's Blog

It is never too late to learn.

Common Errors Encountered in Scala and Solutions

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Java Version Issue

    Unsupported major minor version

    https://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0

java.lang.NoSuchMethodError: scala.Product.\(init\)

Fixing the Scala error: java.lang.NoSuchMethodError: scala.Product.\(init\)

It probably …

Maven Dependencies

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Properties

<properties>
  <scala.version>2.11.11</scala.version>
</properties>

Dependencies

Unit Test

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.11</version>
    <scope>test</scope>
</dependency>

specs

<dependency>
    <groupId …

Tips on the Almond Scala Kernel

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. kernel.silent(true) supress outputs of cells.

  2. Currently each line in a cell have an output, which is messy. There are 2 ways to avoid this.

    val resObj = {
        ...
        ...
    }
    
    {{
        ...
        ...
    }}
    

References

Use Spark …