All Questions
9 questions
1
vote
0
answers
219
views
How to create a Scala presentation compiler inside Ammonite REPL?
I want to create a Scala presentation compiler in Ammonite REPL, however I always got the error of Missing dependency 'object scala in compiler mirror'.
I have tried the workaround mentioned in ...
13
votes
1
answer
3k
views
Scala REPL in Gradle
At the moment Gradle's scala integration does not offer REPL functionality. How to ergonomically run a Scala REPL from Gradle with the appropriate classpath?
2
votes
1
answer
621
views
Making jar files available to the scala REPL
I can't seem to get this to work, so i have tried what's probably the most straightforward case--ie, retrieve the jar file and into a given directory then start the scala REPL from that directory--...
4
votes
3
answers
3k
views
Add multiple classpath entries to scala REPL classpath
:cp seems to only accept a single entry
scala> :cp /usr/lib/hadoop/*:/usr/lib/hadoop/lib/*:/usr/lib/hbase/*:/usr/lib/hbase/lib/*:
/home/sboesch/spark-master/lib_managed/jars/*:/home/sboesch/spark-...
1
vote
0
answers
719
views
Set scala REPL classpath
I have set an environment variable for the classpath:
~/spark-0.8.0-incubating-bin-hadoop1 >echo $CP
:/home/sboesch/spark-0.8.0-incubating-bin-hadoop1/conf:/home/sboesch/spark-0.8.0-incubating-bin-...
8
votes
3
answers
2k
views
cannot add a jar to scala repl with the :cp command
If I issue:
$ scala -classpath poi-3.9/poi-3.9-20121203.jar
scala> import org.apache.poi.hssf.usermodel.HSSFSheet
import org.apache.poi.hssf.usermodel.HSSFSheet
Everything works ok, but if ...
9
votes
2
answers
1k
views
scala.tools.nsc.IMain within Play 2.1
I googled a lot and am totally stuck now. I know, that there are similar questions but please read to the end. I have tried all proposed solutions and none did work.
I am trying to use the IMain ...
1
vote
1
answer
120
views
Exclude scalacheck from the scala runner's classpath in Scala 2.9.2
A scalacheck jar was accidentally included in the standard distribution of Scala 2.9.2, in the lib directory, along with the standard scala runtime classes (e.g. scala-library.jar). This was ...
3
votes
3
answers
178
views
How to make classes from a Scala jar library of mine accessible in Scala console and Scala scripts?
I just wonder how can I extend Scala console and "script" runner with my own classes so that I can actually use my code by means of using the actual Scala language to communicate to it? Where am I to ...