您的位置:首页 > 其它

scala在cmd模式下执行文件报<console>:1: error: ';' expected but '.' found. scalac C:\hello.scala 错误

2014-06-26 19:28 681 查看
scala在cmd模式下执行文件报<console>:1: error: ';' expected but '.' found. scalac C:\hello.scala 错误:

具体见图:







按照如下方式即可运行:

首先我的scala安装在:D:\Program Files\scala

具体操作见截图:






或者使用 :load 命令:






具体解释参考:http://stackoverflow.com/questions/22424539/how-can-i-get-scala-to-work-in-the-command-line
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐