error: IO error while decoding xxx.jar with UTF-8
生活随笔
收集整理的這篇文章主要介紹了
error: IO error while decoding xxx.jar with UTF-8
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題復現:
Spark-Second_Edition/第6章/src/main/scala$ scalac -cp self_jars/*.jar AssembleDocumentTermMatrix.scala RunLSA.scala? error: IO error while decoding self_jars/stanford-corenlp-3.4.1.jar with UTF-8 Please try specifying another one using the -encoding option one error found因為很多個.jar包導入的時候,中間是用空格隔開的,而不是用冒號隔開的,所以被scalac誤以為編碼有問題,
其實不是編碼問題,而是格式問題,好了,解決方案是:
?
上面的tr命令類似于sed,意思是把空格替換為冒號
親測有效
轉載自:
https://cloud.tencent.com/developer/ask/87680
?
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的error: IO error while decoding xxx.jar with UTF-8的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: spark出现bytes consume
- 下一篇: intellij无法输入中文