这究竟是IDEA问题还是JDK问题?

Brokedge 发布于 2013/12/27 19:17
阅读 1K+
收藏 0

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出了什么问题~???

加载中
0
兮风古道
兮风古道
没看到 报错  汗死~~~~
Brokedge
Brokedge
呃~后面还有很长一大串~~~
0
loyal
loyal
哈哈哈~简单的问题.
0
NealFeng
NealFeng
有可能 IDEA用的不是javac,而是用的自己的编译器
0
pantrick
pantrick
你恰好把错误信息都没发,发上来一堆没用的
Brokedge
Brokedge
呃~我2B了~~ 现在已经解决了~~~
返回顶部
顶部