Skip to content

Instantly share code, notes, and snippets.

@mapyo
Created Jul 3, 2014
Embed
What would you like to do?
scalaをvimのquickrunで実行した時のエラーとその解決方法。
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Error occurred during initialization of VM
java.nio.charset.IllegalCharsetNameException:
at java.nio.charset.Charset.checkName(Charset.java:273)
at java.nio.charset.Charset.lookup2(Charset.java:458)
at java.nio.charset.Charset.lookup(Charset.java:437)
at java.nio.charset.Charset.defaultCharset(Charset.java:579)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:37)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:94)
at java.io.PrintStream.<init>(PrintStream.java:100)
at java.lang.System.initializeSystemClass(System.java:1108)
object myapp {
def main(args: Array[String]) {
println("test");
}
}
@mapyo
Copy link
Author

mapyo commented Jul 3, 2014

http://lingr.com/room/vim/archives/2013/07/06

:QuickRun -cmdopt "

これで実行するといけた。

@mapyo
Copy link
Author

mapyo commented Jul 7, 2014

素のvimじゃなくて、macvimであれば普通に動いた。

@mapyo
Copy link
Author

mapyo commented Jul 7, 2014

vimrcに以下を追加した。

nnoremap <silent> \r :QuickRun -cmdopt "<CR>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment