Change the path of Scala API to absolute path