Created
July 3, 2014 00:57
-
-
Save mapyo/989f26d73a3c015ecc20 to your computer and use it in GitHub Desktop.
scalaをvimのquickrunで実行した時のエラーとその解決方法。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object myapp { | |
def main(args: Array[String]) { | |
println("test"); | |
} | |
} |
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
素のvimじゃなくて、macvimであれば普通に動いた。