MangoCool

IO error while decoding D:\WorkSpace\sbtTest\src\main\scala\sbtTest.scala with UTF-8

2015-07-08 09:52:41   作者:MangoCool   来源:MangoCool

win7下,sbt项目中执行打包命令:package,出现异常:

[error] IO error while decoding D:\WorkSpace\sbtTest\src\main\scala\sbtTest.scala with UTF-8
[error] Please try specifying another one using the -encoding option
[error] one error found
[error] (compile:compile) Compilation failed
[error] Total time: 39 s, completed 2015-7-7 16:53:11
应该是解码出错。意思是文件的编码不是UTF-8,但是解码却用的UTF-8,所以出错了。

那将文件的编码格式改了不就得了!

现将整个项目编码格式改了:

再将你出错的那个文件编码格式改了,在Intellij底部:

至此问题解决!

标签: SBT Scala exception package command

分享:

上一篇org.apache.spark.SparkException: An application name must be set in your configuration

下一篇sbt.ResolveException: unresolved dependency: org.scala-lang#scala-library;2.10: not found

关于我

崇尚极简,热爱技术,喜欢唱歌,热衷旅行,爱好电子产品的一介码农。

座右铭

当你的才华还撑不起你的野心的时候,你就应该静下心来学习,永不止步!

人生之旅历途甚长,所争决不在一年半月,万不可因此着急失望,招精神之萎葸。

Copyright 2015- 芒果酷(mangocool.com) All rights reserved. 湘ICP备14019394号

免责声明:本网站部分文章转载其他媒体,意在为公众提供免费服务。如有信息侵犯了您的权益,可与本网站联系,本网站将尽快予以撤除。