From Scala, I\'m using a Java library that expects a class argument. Example:
def service: OAuthService = new ServiceBuilder()
Use forName method:
forName
scala> Class.forName("scala.collection.mutable.ArrayBuffer") res0: java.lang.Class[_] = class scala.collection.mutable.ArrayBuffer