4
回答
这究竟是IDEA问题还是JDK问题?
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

IDEA(13.0.1)报如下错误

/usr/lib/jvm/java-1.7.0/bin/java 
-Didea.launcher.port=7536 
-Didea.launcher.bin.path=/vim/IDEA/bin 
-Dfile.encoding=UTF-8 
-classpath "/usr/lib/jvm/java-1.7.0/jre/lib/rhino.jar:/usr/lib/jvm/java-1.7.0/jre/lib/jsse.jar:/usr/lib/jvm/java-1.7.0/jre/lib/resources.jar:/usr/lib/jvm/java-1.7.0/jre/lib/management-agent.jar:/usr/lib/jvm/java-1.7.0/jre/lib/rt.jar:/usr/lib/jvm/java-1.7.0/jre/lib/jce.jar:/usr/lib/jvm/java-1.7.0/jre/lib/charsets.jar:/usr/lib/jvm/java-1.7.0/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-1.7.0/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-1.7.0/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-1.7.0/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-1.7.0/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-1.7.0/jre/lib/ext/pulse-java.jar:/home/timepower/IdeaProjects/son interface/out/production/son interface:/vim/IDEA/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain InnerClassTest



因为代码我是在ST2里面编辑的~然后复制进IDEA~所以编码格式UTF-8~
于是我看了看自己系统(Fedora19)的编码格式
因为听说JDK会根据系统的默认编码来选择自己的编码~

[timepower@localhost local]$ locale
LANG=zh_CN.utf8
LC_CTYPE="zh_CN.utf8"
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE="zh_CN.utf8"
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES="zh_CN.utf8"
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=



但是UTF-8没有问题啊~
到了这我就郁闷了~
在IDEA里新建个类然后println试试~~
结果还是这样~彻底郁闷了~~
但是我用javac编译却可以~难道是IDEA出了什么问题~???

举报
Brokedge
发帖于4年前 4回/1K+阅
顶部