How to specify additional jar files when "sbt package"

23 views
Skip to first unread message

Dan Dong

unread,
May 21, 2015, 7:40:11 AM5/21/15
to simple-b...@googlegroups.com
Hi,
  When I tried to "sbt package" of my project, I got problem of:

[error] /home/ubuntu/wordcount/src/main/scala/wordcount.scala:4: object abc is not a member of package com
[error] import com.abc._
...

The program failed to import the com.abc._, seems it could not find the correct path to it.
But the program compiled and run without problem in scala directly when you set CLASSPATH env to include the jar ball of com.abc.
So how can I specify the -classpath to include this jar ball in "sbt package"? Thanks.

Cheers,
Dan

 


Reply all
Reply to author
Forward
0 new messages