Skip to content

Instantly share code, notes, and snippets.

@mapyo
Created July 3, 2014 00:57
Show Gist options
  • Save mapyo/989f26d73a3c015ecc20 to your computer and use it in GitHub Desktop.
Save mapyo/989f26d73a3c015ecc20 to your computer and use it in GitHub Desktop.
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 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