2017-09-12 79 views
0

導入Future類時出現錯誤Future is not a member of scala.concurrent未來不是scala的成員。併發

~/workspace/experiments $ scala 
Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.7.0_151). 
Type in expressions to have them evaluated. 
Type :help for more information. 

scala> import scala.concurrent.Future 
<console>:7: error: Future is not a member of scala.concurrent 
     import scala.concurrent.Future 
      ^

scala> 

我上Unbuntu 14.04運行以下命令:

~/workspace/experiments $ cat /etc/lsb-release             
DISTRIB_ID=Ubuntu 
DISTRIB_RELEASE=14.04 
DISTRIB_CODENAME=trusty 
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS" 

任何一個人知道我做錯了嗎?

回答

相關問題