title: Set scala REPL classpath
body: <p>I have set an environment variable for the classpath:</p>
  
  <pre><code>~/spark-0.8.0-incubating-bin-hadoop1 &gt;echo $CP
  :/home/sboesch/spark-0.8.0-incubating-bin-hadoop1/conf:/home/sboesch/spark-0.8.0-incubating-bin-hadoop1/assembly/target/scala-2.9.3/spark-
  </code></pre>
  
  <p>However that is not visible for System.getProperty in the repl:</p>
  
  <pre><code>~/spark-0.8.0-incubating-bin-hadoop1 &gt;scala -classpath $CP 
  Welcome to Scala version 2.9.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_23).
  Type in expressions to have them evaluated.
  Type :help for more information.
  
  scala&gt; System.getProperty("java.class.path")                                                                                                                              
  res0: java.lang.String = .
  </code></pre>