This page is no longer maintained — Please continue to the home page at www.scala-lang.org

I have a jar file that contains some Java classes. How do I tell scala to look in this jar file?

As with Java, you can set a -classpath argument:

/tmp> scala -classpath <jarfile>

Alternatively you can set the CLASSPATH environment variable to point to the jar file.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland