Adding .jar's to classpath (Scala)

    xiaoxiao2021-03-25  93

    转自:   http://stackoverflow.com/questions/10077899/adding-jars-to-classpath-scala

    You need to pass both classpath paths as a single argument. Try this:

    $ scalac -classpath "*:dependencies/*" PageRank.scala $ scala -classpath "*:dependencies/*" PageRank It worked for me. you can also use ; to separate the jar names . +1 For completenss sake note that one has to add the classpath both when compiling and when executing. This is something I missed at a first glance.

    转载请注明原文地址: https://ju.6miu.com/read-22241.html

    最新回复(0)